summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authormichael pereira2011-03-29 10:59:15 +0200
committermichael pereira2011-03-29 10:59:15 +0200
commit03b4da383449c290ea01723095d1a87fa257fea5 (patch)
tree4943185a212ced33465b92811cd070bf8e45b717 /library
parentupdatebutton geadded (diff)
downloadpbs2-03b4da383449c290ea01723095d1a87fa257fea5.tar.gz
pbs2-03b4da383449c290ea01723095d1a87fa257fea5.tar.xz
pbs2-03b4da383449c290ea01723095d1a87fa257fea5.zip
Preboot User Controller fertig, ACL fehlt noch
Diffstat (limited to 'library')
-rw-r--r--library/Pbs/Notifier.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/library/Pbs/Notifier.php b/library/Pbs/Notifier.php
index 1c7dfca..e3270e7 100644
--- a/library/Pbs/Notifier.php
+++ b/library/Pbs/Notifier.php
@@ -33,6 +33,13 @@ class Pbs_Notifier{
break;
}
break;
+ case "view":
+ switch($result){
+ case "forbidden":
+ $result = "<div class='errorbox'>Not allowed to see this</div>";
+ break;
+ }
+ break;
case "modify":
switch($result){
case "forbidden":
@@ -59,6 +66,22 @@ class Pbs_Notifier{
break;
}
break;
+ case "update":
+ switch($result){
+ case "forbidden":
+ $result = "<div class='errorbox'>Not allowed to update this</div>";
+ break;
+ case "404":
+ $result = "<div class='errorbox'>The Resource was not found on the specified path</div>";
+ break;
+ case "ok":
+ $result = "<div class='okbox'>Update sucessful</div>";
+ break;
+ case "error":
+ $result = "<div class='warningbox'>Update failed</div>";
+ break;
+ }
+ break;
case "link":
switch($result){
case "forbidden":