|
|
@@ -43,6 +43,14 @@ class Schema_AccessGroupStorageAcl extends Core_AclBase {// Read only class
|
|
|
$fields[100002] = ['name'=>'uid', 'perms'=>'R', 'opis'=>'', 'label'=>'', 'sort_prio'=>102];
|
|
|
return $fields;
|
|
|
}
|
|
|
+ public function getSqlFieldName($fieldName) {
|
|
|
+ switch ($fieldName) {
|
|
|
+ case 'id': return 'ID';
|
|
|
+ case 'name': return 'DESC';
|
|
|
+ case 'uid': return 'ID';
|
|
|
+ }
|
|
|
+ throw new Exception("Unknown field '{$fieldName}' in AccessGroup (" . $this->getName() . ")");
|
|
|
+ }
|
|
|
public function getFieldType($fieldName) { return null; }
|
|
|
|
|
|
// TODO: replace legacy functions: isAllowed, hasFieldPerm, getFieldIdByName
|