summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7af43f2)
raw | patch | inline | side by side (parent: 7af43f2)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 6 May 2009 11:58:27 +0000 (11:58 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 6 May 2009 11:58:27 +0000 (11:58 +0000) |
-Added special check when copying applications.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13613 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13613 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc | patch | blob | history |
diff --git a/trunk/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc b/trunk/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc
index b6caa4d92e41ee5becc1d495299430004d078fb3..a62c9c576b7082120acd881d477d8dd6e2c849ba 100644 (file)
var $last_sorting= "invalid";
var $applications= array();
+ var $copy_source_dn ="";
+
var $orig_base = "";
var $orig_cn = "";
var $orig_dn = "";
/* Check if we are allowed to create or move this object
*/
- if($this->orig_dn == "new" && !$this->acl_is_createable($this->base)){
- $message[] = msgPool::permCreate();
- }elseif($this->orig_dn != "new" && $this->base != $this->orig_base && !$this->acl_is_moveable($this->base)){
- $message[] = msgPool::permMove();
+ if($this->copy_source_dn != ""){
+ if(!$this->acl_is_createable($this->copy_source_dn)){
+ $message[] = msgPool::permCreate();
+ }
+ }else{
+ if($this->orig_dn == "new" && !$this->acl_is_createable($this->base)){
+ $message[] = msgPool::permCreate();
+ }elseif($this->orig_dn != "new" && $this->base != $this->orig_base && !$this->acl_is_moveable($this->base)){
+ $message[] = msgPool::permMove();
+ }
}
+
return $message;
}
plugin::PrepareForCopyPaste($source);
$source_o = new application($this->config,$source['dn']);
$this->gosaApplicationIcon = $source_o->gosaApplicationIcon;
+ $this->copy_source_dn = $source['dn'];
}