summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/role/show.phtml
diff options
context:
space:
mode:
authorSimon2011-04-18 12:42:30 +0200
committerSimon2011-04-18 12:42:30 +0200
commit281a9a40960403b4483af33eec5cebab10e32684 (patch)
treef9a3f7602315e7d1c55f664d161186a911ce2952 /application/modules/user/views/scripts/role/show.phtml
parentPbs_Graph bei Minuswerten wird nichts eingefärbt (diff)
downloadpbs2-281a9a40960403b4483af33eec5cebab10e32684.tar.gz
pbs2-281a9a40960403b4483af33eec5cebab10e32684.tar.xz
pbs2-281a9a40960403b4483af33eec5cebab10e32684.zip
Role Controller geändert
Diffstat (limited to 'application/modules/user/views/scripts/role/show.phtml')
-rw-r--r--application/modules/user/views/scripts/role/show.phtml10
1 files changed, 5 insertions, 5 deletions
diff --git a/application/modules/user/views/scripts/role/show.phtml b/application/modules/user/views/scripts/role/show.phtml
index 43ae781..765153f 100644
--- a/application/modules/user/views/scripts/role/show.phtml
+++ b/application/modules/user/views/scripts/role/show.phtml
@@ -9,10 +9,10 @@ if($this->roleID) {
<h1>Role Details</h1>
<?php
}
- if($this->deleteRight) echo $this->formButton('deleterole', 'Delete', array(
+ if($this->deleteRight && $this->roleID == $this->userIDsNamespace['roleID']) echo $this->formButton('deleterole', 'Delete', array(
'onclick' => 'self.location="/user/role/delete/roleID/' . $this->role->getID() .'"',
'class' => 'rightbutton'));
- if($this->editRight) echo $this->formButton('editrole', 'Edit', array(
+ if($this->editRight && $this->roleID == $this->userIDsNamespace['roleID']) echo $this->formButton('editrole', 'Edit', array(
'onclick' => 'self.location="/user/role/edit/roleID/' . $this->role->getID() .'"',
'class' => 'rightbutton'));
?>
@@ -38,7 +38,7 @@ if($this->roleID) {
<h2>Rights:</h2>
<?php
if($this->rightsAvailable === true) {
- if($this->addRightToRoleRight) {
+ if($this->addRightToRoleRight && $this->roleID == $this->userIDsNamespace['roleID']) {
echo $this->formButton('linkright', 'Add Rights', array(
'onclick' => 'self.location="/user/role/linkright/roleID/' . $this->role->getID() .'"',
'class' => 'addbutton'))?>
@@ -48,7 +48,7 @@ if($this->rightsAvailable === true) {
if(count($this->rightsList)==0) {
echo "There are no Rights to display.";
} else {
- if($this->removeRightOfRoleRight) echo $this->formButton('deleteallrights', 'Delete All Rights', array(
+ if($this->removeRightOfRoleRight && $this->roleID == $this->userIDsNamespace['roleID']) echo $this->formButton('deleteallrights', 'Delete All Rights', array(
'onclick' => 'self.location="/user/role/unlinkright/rightrolesID/' . $this->roleID . '-all"',
'class' => 'rightbutton'));?>
<br />
@@ -63,7 +63,7 @@ if(count($this->rightsList)==0) {
foreach($rights as $right):
?>
<div class='element'>
-<div class='content'><?php if($this->removeRightOfRoleRight) {
+<div class='content'><?php if($this->removeRightOfRoleRight && $this->roleID == $this->userIDsNamespace['roleID']) {
?>
<div class='actions'><a
href="<?php echo $this->url(