mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
system: the all group disappeared in 2015 via a66c7889c7f
This code wasn't doing anything.
This commit is contained in:
parent
dd4512aa3e
commit
cd3758682c
@ -159,21 +159,6 @@ function &getGroupEntry($name)
|
||||
return array();
|
||||
}
|
||||
|
||||
function &getGroupEntryByGID($gid)
|
||||
{
|
||||
global $config;
|
||||
|
||||
if (isset($config['system']['group'])) {
|
||||
foreach ($config['system']['group'] as & $group) {
|
||||
if ($group['gid'] == $gid) {
|
||||
return $group;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function get_user_privileges(&$user)
|
||||
{
|
||||
if (!isset($user['priv']) || !is_array($user['priv'])) {
|
||||
@ -293,10 +278,6 @@ function local_sync_accounts()
|
||||
}
|
||||
}
|
||||
|
||||
/* make sure the all group exists */
|
||||
$allgrp = getGroupEntryByGID(1998);
|
||||
local_group_set($allgrp, true);
|
||||
|
||||
/* sync all local users */
|
||||
if (is_array($config['system']['user'])) {
|
||||
foreach ($config['system']['user'] as $user) {
|
||||
@ -556,7 +537,7 @@ function local_group_del_user($user)
|
||||
}
|
||||
}
|
||||
|
||||
function local_group_set($group, $reset = false)
|
||||
function local_group_set($group)
|
||||
{
|
||||
if (!isset($group['name']) || !isset($group['gid'])) {
|
||||
return;
|
||||
@ -566,7 +547,7 @@ function local_group_set($group, $reset = false)
|
||||
$group_gid = $group['gid'];
|
||||
$group_members = '';
|
||||
|
||||
if (!$reset && !empty($group['member']) && count($group['member']) > 0) {
|
||||
if (!empty($group['member']) && count($group['member']) > 0) {
|
||||
$group_members = implode(',', $group['member']);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user