From 596f2dc724b1a576bbf4db118fc8648ca72801e2 Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Tue, 29 Mar 2011 16:37:43 +0200 Subject: Add Right nur anzeigen, wenn nicht schon alle Rechte vorhanden --- application/modules/user/views/scripts/role/show.phtml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'application/modules/user/views/scripts/role/show.phtml') diff --git a/application/modules/user/views/scripts/role/show.phtml b/application/modules/user/views/scripts/role/show.phtml index 0a7522a..408dcc4 100644 --- a/application/modules/user/views/scripts/role/show.phtml +++ b/application/modules/user/views/scripts/role/show.phtml @@ -31,10 +31,15 @@ if($this->roleID) {

Rights:

- formButton('linkright', 'Add Right', array( + rightsAvailable === true) { + echo $this->formButton('linkright', 'Add Right', array( 'onclick' => 'self.location="/user/role/linkright/roleID/' . $this->role->getID() .'"', 'class' => 'addbutton'))?>
+ rightsList)) { if(isset($this->rightcategorieslist)) { foreach($this->rightcategorieslist as $k => $v) { @@ -79,6 +84,6 @@ if($this->roleID) {

No Rights have been added!

-