summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: de6280d)
raw | patch | inline | side by side (parent: de6280d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 24 Mar 2010 09:53:50 +0000 (09:53 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 24 Mar 2010 09:53:50 +0000 (09:53 +0000) |
-it is not "gosaAclEntry" it is "gosaAclTemplate"
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17041 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17041 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/acl/class_aclRole.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/acl/class_aclRole.inc b/gosa-core/plugins/admin/acl/class_aclRole.inc
index 7b5aa8d00c014d20dbd7737c812f1be890be70c5..5e491bb6a65d72e853596b3961be8ad85e6e9bcc 100644 (file)
$plist= $tmp->info;
/* Handle posts */
- if (isset($_POST['new_acl']) && $this->acl_is_writeable("gosaAclEntry")){
+ if (isset($_POST['new_acl']) && $this->acl_is_writeable("gosaAclTemplate")){
$this->dialogState= 'create';
$this->dialog= TRUE;
$this->currentIndex= count($this->gosaAclTemplate);
continue;
}
- if(!$this->acl_is_writeable("gosaAclEntry")){
+ if(!$this->acl_is_writeable("gosaAclTemplate")){
continue;
}
- if (preg_match('/^acl_del_[0-9]*/', $name) && $this->acl_is_writeable("gosaAclEntry")){
+ if (preg_match('/^acl_del_[0-9]*/', $name) && $this->acl_is_writeable("gosaAclTemplate")){
unset($this->gosaAclTemplate[preg_replace('/^acl_del_([0-9]*)$/', '\1', $name)]);
continue;
}
- if (preg_match('/^cat_del_.*/', $name) && $this->acl_is_writeable("gosaAclEntry")){
+ if (preg_match('/^cat_del_.*/', $name) && $this->acl_is_writeable("gosaAclTemplate")){
$idx= preg_replace('/^cat_del_(.*)$/', '\1', $name);
foreach ($this->ocMapping[$idx] as $key){
if(isset($this->aclContents[$idx]))
}
/* Sorting... */
- if (preg_match('/^sortup_[0-9]*$/', $name) && $this->acl_is_writeable("gosaAclEntry")){
+ if (preg_match('/^sortup_[0-9]*$/', $name) && $this->acl_is_writeable("gosaAclTemplate")){
$index= preg_replace('/^sortup_([0-9]*)$/', '\1', $name);
if ($index > 0){
$tmp= $this->gosaAclTemplate[$index];
}
continue;
}
- if (preg_match('/^sortdown_[0-9]*$/', $name) && $this->acl_is_writeable("gosaAclEntry")){
+ if (preg_match('/^sortdown_[0-9]*$/', $name) && $this->acl_is_writeable("gosaAclTemplate")){
$index= preg_replace('/^sortdown_([0-9]*)$/', '\1', $name);
if ($index < count($this->gosaAclTemplate)-1){
$tmp= $this->gosaAclTemplate[$index];
}
/* ACL saving... */
- if (preg_match('/^acl_.*_[^xy]$/', $name) && $this->acl_is_writeable("gosaAclEntry")){
+ if (preg_match('/^acl_.*_[^xy]$/', $name) && $this->acl_is_writeable("gosaAclTemplate")){
list($dummy, $object, $attribute, $value)= explode('_', $name);
/* Skip for detection entry */
}
/* Store ACL in main object? */
- if (isset($_POST['submit_new_acl']) && $this->acl_is_writeable("gosaAclEntry")){
+ if (isset($_POST['submit_new_acl']) && $this->acl_is_writeable("gosaAclTemplate")){
$this->gosaAclTemplate[$this->currentIndex]['type']= $this->aclType;
$this->gosaAclTemplate[$this->currentIndex]['members']= $this->recipients;
$this->gosaAclTemplate[$this->currentIndex]['acl']= $this->aclContents;
}
/* Save edit acl? */
- if (isset($_POST['submit_edit_acl']) && $this->acl_is_writeable("gosaAclEntry")){
+ if (isset($_POST['submit_edit_acl']) && $this->acl_is_writeable("gosaAclTemplate")){
$this->dialogState= 'create';
}
/* Add acl? */
- if (isset($_POST['add_acl']) && $_POST['aclObject'] != "" && $this->acl_is_writeable("gosaAclEntry")){
+ if (isset($_POST['add_acl']) && $_POST['aclObject'] != "" && $this->acl_is_writeable("gosaAclTemplate")){
$this->dialogState= 'edit';
$this->savedAclContents= array();
foreach ($this->ocMapping[$this->aclObject] as $oc){
/* Save common values */
foreach (array("aclType", "aclObject", "target") as $key){
- if (isset($_POST[$key]) && $this->acl_is_writeable("gosaAclEntry")){
+ if (isset($_POST[$key]) && $this->acl_is_writeable("gosaAclTemplate")){
$this->$key= validate($_POST[$key]);
}
}
$field2= array("string" => $link);
$action ="";
- if($this->acl_is_writeable("gosaAclEntry")){
+ if($this->acl_is_writeable("gosaAclTemplate")){
$action.=image('images/lists/sort-up.png','sortup_'.$key,'','top');
$action.=image('images/lists/sort-down.png','sortdown_'.$key,'','bottom');
}
- if($this->acl_is_readable("gosaAclEntry")){
+ if($this->acl_is_readable("gosaAclTemplate")){
$action.= image('images/lists/edit.png','acl_edit_'.$key,msgPool::editButton(_("ACL")));
}
- if($this->acl_is_writeable("gosaAclEntry")){
+ if($this->acl_is_writeable("gosaAclTemplate")){
$action.= image('images/lists/trash.png','acl_del_'.$key,msgPool::delButton(_("ACL")));
}
}
$action = "";
- if($this->acl_is_readable("gosaAclEntry")){
+ if($this->acl_is_readable("gosaAclTemplate")){
$action.= image('images/lists/edit.png','cat_edit_'.$section,_("Edit category ACL"));
}
- if($this->acl_is_writeable("gosaAclEntry") && preg_match("/;".$section."(;|\/)/", $usedList)){
+ if($this->acl_is_writeable("gosaAclTemplate") && preg_match("/;".$section."(;|\/)/", $usedList)){
$action.= image('images/lists/trash.png','cat_del_'.$section,_("Delete category ACL"));
}
function aclPostHandler()
{
- if (isset($_POST['save_acl']) && $this->acl_is_writeable("gosaAclEntry")){
+ if (isset($_POST['save_acl']) && $this->acl_is_writeable("gosaAclTemplate")){
$this->save();
return TRUE;
}
"cn" => _("Name"),
"base" => _("Base"),
"description" => _("Description"),
- "gosaAclEntry" => _("Permissions"))
+ "gosaAclTemplate" => _("Permissions"))
));
}