From 03c6304e19d5d3ecd276dd3f42220db301ab511d Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 15 Jul 2014 20:52:54 +0200 Subject: Rework permission handling Add a new function has_credential() that checks whether the currently logged in user is allowed to perform a given action. Moving all permission handling to this central place makes adding new user groups and adjusting permissions much more convenient. Signed-off-by: Lukas Fleischer --- web/template/pkg_details.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'web/template/pkg_details.php') diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 6f39514..7f01d2f 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -1,5 +1,4 @@ " /> - +
  • @@ -108,7 +106,7 @@ $sources = pkg_sources($row["ID"]);
  • 0) { echo _n('%d pending request', '%d pending requests', $row["RequestCount"]); } ?>
  • - +
  • @@ -121,8 +119,7 @@ $sources = pkg_sources($row["ID"]);
  • - +
  • @@ -150,8 +147,7 @@ $sources = pkg_sources($row["ID"]); @@ -312,7 +308,7 @@ if ($row["PackagerUID"]): - + -- cgit v1.2.3-70-g09d2