75 foreach ($permissions as $userFieldId => $userFieldPermission)
77 if (!isset($values[$userFieldId]))
79 $values[$userFieldId] = 0;
86 if(!isset($userFieldPermission[$permissionId]) && !isset($userFieldPermission[$permissionId][$ac]))
88 $userFieldPermission[$permissionId][$ac] =
true;
91 else if(!isset($userFieldPermission[$permissionId][$ac]))
93 $userFieldPermission[$permissionId][$ac] =
false;
96 $values[$userFieldId] = (
97 ($userFieldPermission[$permissionId][$ac] > $values[$userFieldId])
98 ? $userFieldPermission[$permissionId][$ac]
99 : $values[$userFieldId]