forked from extern/egroupware
[Save] missing for edit with implicit rights only, [Apply] was there
This commit is contained in:
parent
7c50df4d57
commit
c9b0ad39f7
@ -5,7 +5,7 @@
|
||||
* @link http://www.egroupware.org
|
||||
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @package infolog
|
||||
* @copyright (c) 2003-11 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @copyright (c) 2003-12 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @version $Id$
|
||||
*/
|
||||
@ -1808,7 +1808,7 @@ class infolog_ui
|
||||
}
|
||||
$preserv = $content;
|
||||
// for no edit rights or implizit edit of responsible user make all fields readonly, but status and percent
|
||||
if ($info_id && !$this->bo->check_access($info_id,EGW_ACL_EDIT)/* && $this->bo->is_responsible($content)*/ && !$undelete)
|
||||
if ($info_id && !$this->bo->check_access($info_id,EGW_ACL_EDIT) && !$undelete)
|
||||
{
|
||||
$readonlys['__ALL__'] = true; // make all fields not explicitly set readonly
|
||||
if ($this->bo->is_responsible($content))
|
||||
@ -1817,7 +1817,7 @@ class infolog_ui
|
||||
{
|
||||
$readonlys[$name] = false;
|
||||
}
|
||||
$readonlys['button[edit]'] = $readonlys['button[apply]'] = $readonlys['no_notifications'] = false;
|
||||
$readonlys['button[edit]'] = $readonlys['button[save]'] = $readonlys['button[apply]'] = $readonlys['no_notifications'] = false;
|
||||
}
|
||||
$readonlys['action'] = $readonlys['button[cancel]'] = false; // always allowed
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user