Moved a few functions to misc, moved where permissions is included as it's needed everywhere.

This commit is contained in:
Richard Underwood 2017-01-06 14:05:12 +00:00
parent 6033bc12aa
commit a57af479b8
4 changed files with 46 additions and 45 deletions

View file

@ -111,16 +111,6 @@ function get_group_members($id) {
return $ret;
}
// move to misc?
function get_user_id($user) {
$info=get_user_info($user);
if($info) {
return $info['id'];
} else {
return null;
}
}
function get_group_id($group) {
$info=get_group_info($group);
if($info) {