summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/role
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/user/views/scripts/role')
-rw-r--r--application/modules/user/views/scripts/role/show.phtml11
1 files changed, 8 insertions, 3 deletions
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) {
</table>
<br />
<h2>Rights:</h2>
- <?php echo $this->formButton('linkright', 'Add Right', array(
+ <?php
+ if($this->rightsAvailable === true) {
+ echo $this->formButton('linkright', 'Add Right', array(
'onclick' => 'self.location="/user/role/linkright/roleID/' . $this->role->getID() .'"',
'class' => 'addbutton'))?>
<br />
+ <?php
+ }
+ ?>
<?php if(isset($this->rightsList)) {
if(isset($this->rightcategorieslist)) {
foreach($this->rightcategorieslist as $k => $v) {
@@ -79,6 +84,6 @@ if($this->roleID) {
<center>
<h3>No Rights have been added!</h3>
</center>
- <?php
- }
+<?php
+}
} \ No newline at end of file