summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6a27f6f)
raw | patch | inline | side by side (parent: 6a27f6f)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 28 Apr 2010 12:06:39 +0000 (12:06 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 28 Apr 2010 12:06:39 +0000 (12:06 +0000) |
-Fixed ACL checks. We are now able to set the logon hours restriction for new users too.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17907 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17907 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/samba/personal/samba/class_sambaAccount.inc | patch | blob | history | |
gosa-plugins/samba/personal/samba/class_sambaLogonHours.inc | patch | blob | history |
diff --git a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc
index a6976a7afffb59333bbcf95972b541bb67327d68..6005d11e2dfd1af0e21496461a6cde0ef0be0ec4 100644 (file)
/* Open Samaba Logong hours dialog */
if(isset($_POST['SetSambaLogonHours']) && $this->acl_is_readable("sambaLogonHours")){
- $this->dialog = new sambaLogonHours($this->config,$this->dn,$this->sambaLogonHours);
+ $this->dialog = new sambaLogonHours($this->config,$this->dn,$this->sambaLogonHours, $this->getacl('sambaLogonHours'));
}
/* Cancel dialog */
diff --git a/gosa-plugins/samba/personal/samba/class_sambaLogonHours.inc b/gosa-plugins/samba/personal/samba/class_sambaLogonHours.inc
index eea7cfb2a5e0b3988b0313c1e0a84c7263cc52fc..6e9d4c747e75483fdf64a363c610792b0eb1996e 100644 (file)
var $Matrix = array();
var $timezone = 0;
var $config;
+ var $acl;
- function sambaLogonHours (&$config, $dn, $slh)
+ function sambaLogonHours (&$config, $dn, $slh, $acl = 'rw')
{
plugin::plugin($config,$dn);
$this->sambaLogonHours = $slh;
+ $this->acl = $acl;
/* Get default timezone */
$zone = timezone::get_default_timezone();
$ui =get_userinfo();
$smarty = get_smarty();
- $acl = $ui->get_permissions($this->dn,"users/sambaAccount","sambaLogonHours");
- $smarty->assign("acl",preg_match("/w/i",$acl));
+ $smarty->assign("acl",preg_match("/w/i",$this->acl));
$hours = array();
for($i = 0 ; $i <24 ; $i++ ){