summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 70bd321)
raw | patch | inline | side by side (parent: 70bd321)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 3 Nov 2006 08:12:46 +0000 (08:12 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 3 Nov 2006 08:12:46 +0000 (08:12 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5003 594d385d-05f5-0310-b6e9-bd551577e9d8
contrib/gosa.conf | patch | blob | history | |
include/class_plugin.inc | patch | blob | history | |
plugins/admin/users/class_divListUsers.inc | patch | blob | history |
diff --git a/contrib/gosa.conf b/contrib/gosa.conf
index d182696ee9578e6a19ebda48fedb854f44fced93..f5184648252bba3c84995747028f1ddf3459048e 100644 (file)
--- a/contrib/gosa.conf
+++ b/contrib/gosa.conf
displayerros="{errorlvl}">
<location name="{LOCATIONNAME}"
+ gidbase="{UIDBASE}"
uidbase="{UIDBASE}"
governmentmode="{GOVERNMENTMODE}"
sambaversion="{SAMBAVERSION}"
index 359b7f848d1c0af887e703dc0906bb510541bfad..af92fbe4f3947467e8386f1f63ffb146e00301d8 100644 (file)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
*/
function execute()
{
- $_SESSION['errors'] .= "<div><b>".get_class($this)."</b> - ";
- $_SESSION['errors'] .= "<font face='courier' color='red' >ACL BASE: ".$this->acl_base."</font>";
- $_SESSION['errors'] .= "<font face='courier' color='blue'>ACL CAT: ".$this->acl_category."</font></div>";
+ gosa_log("ACL ".get_class($this)." - ".$this->acl_category." - ".$this->acl_base);
/* This one is empty currently. Fabian - please fill in the docu code */
$_SESSION['current_class_for_help'] = get_class($this);
diff --git a/plugins/admin/users/class_divListUsers.inc b/plugins/admin/users/class_divListUsers.inc
index e06517ca3db79757747b6a8e70666f23d98e1d64..31d5a5abf36e27335e72290b0346c6110b331835 100644 (file)
}
/* Get copy & paste icon */
- if(preg_match("/w/",$ui->get_permissions($this->selectedBase,"users/user")) && $this->parent->CopyPasteHandler){
+ $acl = $ui->get_permissions($this->selectedBase,"users/user");
+ if(preg_match("/(c.*w|w.*c)/",$acl) && $this->parent->CopyPasteHandler){
$Copy_Paste = $this->parent->CopyPasteHandler->generatePasteIcon();
}else{
$Copy_Paste ="";
" <input class='center' type='image' src='images/list_reload.png' align='middle'
title='"._("Reload list")."' name='submit_department' alt='"._("Submit")."'> ".
" <img class='center' src='images/list_seperator.png' align='middle' alt='-' height='16' width='1'> ";
- $listhead .= $this->get_snapshot_header($this->selectedBase);
- $acls = $ui->get_permissions($this->selectedBase,"users/user");
- if(preg_match("/c/",$acls)) {
+
+ if(preg_match("/(c.*w|w.*c)/",$acl)){
+ $listhead .= $this->get_snapshot_header($this->selectedBase);
+ }
+
+ if(preg_match("/c/",$acl)) {
$listhead .= " <input class='center' type='image' align='middle' src='images/list_new_user.png'
title='"._("Create new user")."' alt='"._("New user")."' name='user_new'> ";
$listhead .= " <input class='center' type='image' align='middle' src='images/list_new.png'
title='"._("Create new template")."' alt='"._("New template")."' name='user_tplnew'> ";
-# $listhead .= " <img class='center' src='images/list_seperator.png' align='middle' alt='-' height='16' width='1'> ";
}
-
+
+ $listhead .= $Copy_Paste;
+
$listhead .=
- $Copy_Paste.
_("Base")." <select name='CurrentMainBase' onChange='mainform.submit()' class='center'>$options</select>".
" <input class='center' type='image' src='images/list_submit.png' align='middle'
title='"._("Submit department")."' name='submit_department' alt='". _("Submit")."'> ".
/* Create action icons */
$action= "";
- /* Add copy & cut icons */
- if($this->parent->CopyPasteHandler && preg_match("/w/",$ui->get_category_permissions($val['dn'],"users"))) {
+ /* Add copy & cut icons */
+
+ $acl = $ui->get_permissions($val['dn'],"users/user");
+ if(preg_match("/(c.*w|w.*c)/",$acl) && $this->parent->CopyPasteHandler){
$action .= "<input class='center' type='image'
src='images/editcut.png' alt='"._("cut")."' name='cut_%KEY%' title='"._("Cut this entry")."'> ";
$action.= "<input class='center' type='image'
}
/* Add snapshot icon */
- $action.= $this->GetSnapShotActions($val['dn']);
+ if(preg_match("/(c.*w|w.*c)/",$acl)){
+ $action.= $this->GetSnapShotActions($val['dn']);
+ }
/* Add remove icon, if we are allowed to remove the current user */
if(preg_match("/d/",$ui->get_permissions($val['dn'],"users/user"))) {