openrat-cms

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

commit 9f28898196f23406829cb955891d3279e4340ce9
parent 70931b7678bd04388372322157e066cba2637894
Author: dankert <devnull@localhost>
Date:   Sun, 22 Mar 2009 22:13:22 +0100

Rechte-Seite auch für Nicht-Ordner editierbar, damit Rechte löschbar sind.

Diffstat:
actionClasses/FileAction.ini.php | 3++-
actionClasses/LinkAction.ini.php | 1+
actionClasses/ObjectAction.class.php | 6+++++-
actionClasses/PageAction.ini.php | 3++-
themes/default/templates/object/rights.tpl.src.php | 21+++++++++++----------
5 files changed, 21 insertions(+), 13 deletions(-)

diff --git a/actionClasses/FileAction.ini.php b/actionClasses/FileAction.ini.php @@ -53,10 +53,11 @@ menu=pub goto=pub ; Die Aktionen "rights", "aclform", "addacl" und "delacl" sind -; für Seiten,Ordner,Links und Dateien identisch. +; f�r Seiten,Ordner,Links und Dateien identisch. [rights] menu=rights action=object +editable=true [aclform] menu=rights diff --git a/actionClasses/LinkAction.ini.php b/actionClasses/LinkAction.ini.php @@ -20,6 +20,7 @@ menu=edit target=save [rights] +editable=true [delete] goto=showprop diff --git a/actionClasses/ObjectAction.class.php b/actionClasses/ObjectAction.class.php @@ -20,6 +20,9 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // --------------------------------------------------------------------------- // $Log$ +// Revision 1.12 2009-03-22 21:13:22 dankert +// Rechte-Seite auch für Nicht-Ordner editierbar, damit Rechte löschbar sind. +// // Revision 1.11 2009-03-19 04:36:42 dankert // Neue Methode "inherit()". // @@ -177,7 +180,8 @@ class ObjectAction extends Action $o = Session::getObject(); $o->objectLoadRaw(); $this->setTemplateVar( 'show',$o->getRelatedAclTypes() ); - + $this->setTemplateVar( 'type',$o->getType() ); + $acllist = array(); /* diff --git a/actionClasses/PageAction.ini.php b/actionClasses/PageAction.ini.php @@ -58,10 +58,11 @@ goto=showprop menu=src ; Die Aktionen "rights", "aclform", "addacl" und "delacl" sind -; für Seiten,Ordner,Links und Dateien identisch. +; f�r Seiten,Ordner,Links und Dateien identisch. [rights] menu=rights action=object +editable=true [aclform] menu=rights diff --git a/themes/default/templates/object/rights.tpl.src.php b/themes/default/templates/object/rights.tpl.src.php @@ -48,12 +48,13 @@ page text key:GLOBAL_DELETE if true:mode:edit - row - cell colspan:15 - set var:inherit value:1 - input type:checkbox name:inherit - label for:inherit - text key:inherit_rights - row - cell class:act colspan:15 - button type:ok- \ No newline at end of file + if value:var:type equals:folder + row + cell colspan:15 + set var:inherit value:1 + input type:checkbox name:inherit + label for:inherit + text key:inherit_rights + row + cell class:act colspan:15 + button type:ok+ \ No newline at end of file