summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: afa82bd)
raw | patch | inline | side by side (parent: afa82bd)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 1 Dec 2008 12:47:27 +0000 (12:47 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 1 Dec 2008 12:47:27 +0000 (12:47 +0000) |
-Allow read only access to locked objects
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13096 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13096 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/groups/class_groupManagement.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/groups/class_groupManagement.inc b/gosa-core/plugins/admin/groups/class_groupManagement.inc
index f86a9d1fd5b19bd20e73cd9fe6f5a7727cc10450..09da2d50d48439e6e9a16c5b6d0660ed1e80c564 100644 (file)
/* Check locking & lock entry if required */
$user = get_lock($this->dn);
if ($user != ""){
- return(gen_locked_message ($user, $this->dn));
+ return(gen_locked_message ($user, $this->dn,TRUE));
}
add_lock ($this->dn, $this->ui->dn);
/* Don't show buttons if tab dialog requests this */
if(isset($this->grouptab->by_object)){
- if (!$this->grouptab->by_object[$this->grouptab->current]->dialog){
+
+ if(($this->grouptab instanceOf tabs || $this->grouptab instanceOf plugin) && $this->grouptab->read_only == TRUE){
+ $display.= "<p style=\"text-align:right\">
+ <input type=submit name=\"edit_cancel\" value=\"".msgPool::cancelButton()."\">
+ </p>";
+ }elseif (!$this->grouptab->by_object[$this->grouptab->current]->dialog){
$display.= "<p style=\"text-align:right\">\n";
$display.= "<input type=submit name=\"edit_finish\" style=\"width:80px\" value=\"".msgPool::okButton()."\">\n";
$display.= " \n";
{
if (isset($this->grouptab->dn)){
del_lock ($this->grouptab->dn);
- }
- if(isset($this->dn) && !empty($this->dn) && $this->dn != "new"){
+ }elseif(isset($this->dn) && !empty($this->dn) && $this->dn != "new"){
del_lock($this->dn);
}
if(isset($this->dns) && is_array($this->dns) && count($this->dns)){