var $fullRights = "ADESPIM";
+
+ function groupsWithRights($rightname, $right)
+ {
+ $t = clone($this);
+ $t->rightname = $rightname;
+ $t->whereAdd("accessmask like '{$this->escape($right)}'");
+ $t->selectAdd();
+ $t->selectAdd('distinct(group_id) as group_id');
+ return $t->fetchAll('group_id');
+
+ }
+
+
function listPermsFromGroupIds($grps, $isAdmin=false, $isOwner = false) {
$t = clone($this);
$r[$k] = $v[0] ; // -- it's admin they get rights... can not be disabled..
continue;
}
-
+ // in theory non-owners could sneak in rights here..??
$r[$k] = $ret[$k];
continue;
}