index 65cdfdfd9ff0c606b93412305d910ce55f3b4350..423694c8a7df021ab160120ec0dcd4ff85b21b9e 100644 (file)
then return all permissions.
*/
if($this->ignore_acl_for_current_user()){
then return all permissions.
*/
if($this->ignore_acl_for_current_user()){
+ if($skip_write){
+ return("rcdm");
+ }
return("rwcdm");
}
return("rwcdm");
}
$found = FALSE;
foreach($info['acl'] as $cat => $data){
$found = FALSE;
foreach($info['acl'] as $cat => $data){
- /* Skip self acls?
- */
- if($skip_self_acls && preg_match("//s",$data['0'])) continue;
+ /* Skip self acls? */
+ if($skip_self_acls && isset($data['0']) && preg_match("//s",$data['0'])) continue;
if(is_array($module)){
foreach($module as $mod){
if(is_array($module)){
foreach($module as $mod){
*/
function ignore_acl_for_current_user()
{
*/
function ignore_acl_for_current_user()
{
- return(isset($this->config->current['IGNORE_ACL']) && $this->config->current['IGNORE_ACL'] == $this->dn);
+ return($this->config->get_cfg_value("ignore_acl") == $this->dn);
}
}
}
}