From: hickert Date: Wed, 19 Jul 2006 07:11:07 +0000 (+0000) Subject: Fixed type X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=21b83c9dde1007298ad9141a985b168eb5d4757d;p=gosa.git Fixed type git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4223 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 78eb02241..f4a3fdb5f 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -1399,7 +1399,7 @@ echo "FIXME: remove_snapshot uses old acl's
"; } - function acl_is_writable($attribute) + function acl_is_writeable($attribute) { $ui= get_userinfo(); return preg_match('/w/', $ui->get_permissions($this->dn, get_class($this), $attribute)); diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index f784438a2..cbb162db7 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -593,7 +593,7 @@ class user extends plugin /* Save government mode attributes */ if ($this->config->current['GOVERNMENTMODE']){ foreach ($this->govattrs as $val){ - if ($this->acl_is_writable($val) && isset ($_POST["$val"])){ + if ($this->acl_is_writeable($val) && isset ($_POST["$val"])){ $data= stripcslashes($_POST["$val"]); if ($data != $this->$val){ $this->is_modified= TRUE; @@ -964,13 +964,13 @@ class user extends plugin if ($this->dn == "new" && !$this->acl_is_createable()){ $message[]= _("You have no permissions to create a user on this 'Base'."); } elseif ($this->dn != $new_dn && $this->dn != "new"){ - if (!$this->acl_is_writable($this->dn, "user","create")){ + if (!$this->acl_is_writeable($this->dn, "user","create")){ $message[]= _("You have no permissions to move a user from the original 'Base'."); } } /* must: sn, givenName, uid */ - if ($this->sn == "" && ($this->acl_is_writable($this->dn, "user","sn") || ($this->new))){ + if ($this->sn == "" && ($this->acl_is_writeable($this->dn, "user","sn") || ($this->new))){ $message[]= _("The required field 'Name' is not set."); } @@ -985,10 +985,10 @@ class user extends plugin /* In template mode, the uid and givenName are autogenerated... */ if (!$this->is_template){ - if ($this->givenName == "" && $this->acl_is_writable("givenName")){ + if ($this->givenName == "" && $this->acl_is_writeable("givenName")){ $message[]= _("The required field 'Given name' is not set."); } - if ($this->uid == "" && $this->acl_is_writable("uid")){ + if ($this->uid == "" && $this->acl_is_writeable("uid")){ $message[]= _("The required field 'Login' is not set."); } if (!(isset($this->config->current['DNMODE']) && $this->config->current['DNMODE'] == "uid")){