summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: acda78d)
raw | patch | inline | side by side (parent: acda78d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 May 2008 07:15:31 +0000 (07:15 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 May 2008 07:15:31 +0000 (07:15 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11012 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_acl.inc | patch | blob | history |
index 44a612db134c9af67da0634313636c15993a1a7b..706e0eb0275b3651bfd57c911e76a855f3feb074 100644 (file)
function acl_is_writeable($attribute,$skip_write = FALSE)
{
- return(TRUE);
$ui= get_userinfo();
return preg_match('/w/', $ui->get_permissions($this->acl_base, $this->acl_category.get_class($this), $attribute, $skip_write));
}
function acl_is_readable($attribute)
{
- return(TRUE);
$ui= get_userinfo();
return preg_match('/r/', $ui->get_permissions($this->acl_base, $this->acl_category.get_class($this), $attribute));
}
function acl_is_createable()
{
- return(TRUE);
+
$ui= get_userinfo();
return preg_match('/c/', $ui->get_permissions($this->acl_base, $this->acl_category.get_class($this), '0'));
}
function acl_is_removeable()
{
- return(TRUE);
$ui= get_userinfo();
return preg_match('/d/', $ui->get_permissions($this->acl_base, $this->acl_category.get_class($this), '0'));
}