openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit a9d1ea32dc887ea744dc4c71d801659648654d8d
parent 8d44ad846ae3eeee237e4cfb5f911fd540082746
Author: dankert <devnull@localhost>
Date:   Thu, 29 Oct 2009 09:48:43 +0100

Bearbeitungsmasken, wenn System im readonly-Zustand.

Diffstat:
actionClasses/Action.class.php | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/actionClasses/Action.class.php b/actionClasses/Action.class.php @@ -640,6 +640,9 @@ class Action */ function isEditMode() { + if ( readonly() ) + return false; + return !$this->isEditable() || $this->getRequestVar('mode')=='edit' || isset($_COOKIE['or_always_edit']) || (isset($this->templateVars) && $this->templateVars['mode']=='edit'); } }