summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7f35fd2)
raw | patch | inline | side by side (parent: 7f35fd2)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 19 Jul 2006 07:11:07 +0000 (07:11 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 19 Jul 2006 07:11:07 +0000 (07:11 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4223 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_plugin.inc | patch | blob | history | |
plugins/personal/generic/class_user.inc | patch | blob | history |
index 78eb022413ed4ada64b08e143e98d60b1a912dce..f4a3fdb5f4f9d6305b0c7865016b89fa3661408a 100644 (file)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
}
- 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));
index f784438a2af6e8c94185243fcc2a0c3455a41072..cbb162db7868283a45a26a9b9cba81eb2843b50b 100644 (file)
/* 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;
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.");
}
/* 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")){