summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 29dcf13)
raw | patch | inline | side by side (parent: 29dcf13)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 22 Jul 2008 09:30:39 +0000 (09:30 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 22 Jul 2008 09:30:39 +0000 (09:30 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11741 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc
index b89cff3758e6b04c304db4166fb8ba2e7e81361c..0b171df4a1d4dcc7159efe2d493bed8b1953b5ce 100644 (file)
}
}
- $this->gotoShareSelections= $config->getShareList(true);
+ $this->otoShareSelections= $config->getShareList(true);
$this->gotoAvailableShares= $config->getShareList(false);
$tmp2 = array();
new log("view","workstation/".get_class($this),$this->dn);
}
- /* Do we need to flip is_account state? */
- if(isset($_POST['modify_state'])){
- if($this->is_account && $this->acl_is_removeable()){
- $this->is_account= FALSE;
- }elseif(!$this->is_account && $this->acl_is_createable()){
- $this->is_account= TRUE;
- }
- }
-
/* Do we represent a valid terminal? */
if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/small-error.png\" align=middle> <b>".
$SelectBoxLdapServer->SetHeight(130);
/* Add new ldap server to the list */
- if(!$this->gotoLdap_inherit && isset($_POST['add_ldap_server']) && isset($_POST['ldap_server_to_add'])){
+ if($this->acl_is_writeable("gotoLdapServer") &&
+ !$this->gotoLdap_inherit &&
+ isset($_POST['add_ldap_server']) &&
+ isset($_POST['ldap_server_to_add'])){
if(isset($this->gotoLdapServerList[$_POST['ldap_server_to_add']])){
$to_add = $this->gotoLdapServerList[$_POST['ldap_server_to_add']];
if(!in_array($to_add,$this->gotoLdapServers)){
}
/* Move ldap servers up and down */
- if(!$this->gotoLdap_inherit){
+ if(!$this->gotoLdap_inherit && $this->acl_is_writeable("gotoLdapServer")){
foreach($_POST as $name => $value){
if(preg_match("/sort_ldap_up_/",$name)){
$id = preg_replace("/^sort_ldap_up_([0-9]*)_(x|y)$/","\\1",$name);
}
/* Add Entries */
- foreach($this->gotoLdapServers as $key => $server){
- /* Announce missing entries */
- if(!in_array($server,$this->gotoLdapServerList)){
- $server = $server." <font style='color:red'>(missing)</font>";
- }
+ if($this->acl_is_readable("gotoLdapServer")){
- /* Convert old style entry */
- if (!preg_match('%:ldaps?://%', $server)){
- $server= "ldap://".preg_replace('/^([^:]+):/', '\1/', $server);
+ foreach($this->gotoLdapServers as $key => $server){
- /* Beautify new style entries */
+ /* Announce missing entries */
+ if(!in_array($server,$this->gotoLdapServerList)){
+ $server = $server." <font style='color:red'>(missing)</font>";
+ }
+
+ /* Convert old style entry */
+ if (!preg_match('%:ldaps?://%', $server)){
+ $server= "ldap://".preg_replace('/^([^:]+):/', '\1/', $server);
+
+ /* Beautify new style entries */
} else {
$server= preg_replace("/^[^:]+:/", "", $server);
}
"<input class='center' type='image' src='images/lists/sort-down.png' name='sort_ldap_down_".$key."'> ".
"<input class='center' type='image' src='images/lists/trash.png' name='gotoLdapRemove_".$key."'>",
"attach" => "style='text-align:right;width:40px;border-right:0px;'")));
+ }
}
if($this->gotoLdap_inherit){