Skip to content

Commit

Permalink
auth class correction to functions.inc
Browse files Browse the repository at this point in the history
  • Loading branch information
System Administrator authored and System Administrator committed Jul 6, 2016
1 parent 7c49e02 commit 58953ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/core/functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1946,12 +1946,13 @@ public static function permission($params=null, $person_id=null) {
// new method
$perms = explode(';',$params);
foreach($perms as $perm){
list($group, $granted) = explode(':',$perm);
list($group, $granted) = explode(':',trim($perm));

if (empty($group)) return false;
if (empty($key[$group])) $key[$group] = md5($group.$person_id);

if (empty($access[$key[$group]])&&!empty($person_id)) {

$rs = aql::select(" {$group} { id, access_group } ", array(
'where' => array(0=>(($group!='person')?'person_':'').'id='.$person_id),
'limit' => 1 ));
Expand Down

0 comments on commit 58953ff

Please sign in to comment.