Grant Horde admins permissions to at least view all contexts. This ensures the permi...
authorBen Klang <ben@alkaloid.net>
Tue, 31 Jan 2006 03:24:28 +0000 (03:24 +0000)
committerBen Klang <ben@alkaloid.net>
Tue, 31 Jan 2006 03:24:28 +0000 (03:24 +0000)
expected.

git-svn-id: https://svn.alkaloid.net/gpl/shout/trunk@280 06cd67b6-e706-0410-b29e-9de616bca6e9

lib/Shout.php

index 5c6bfa4..2021e42 100644 (file)
@@ -158,6 +158,8 @@ class Shout
      */
     function checkRights($permname, $permmask = null, $numparents = 0)
     {
+        if (Auth::isAdmin()) { return true; }
+
         $perms = Perms::singleton();
         if ($permmask === null) {
             $permmask = PERMS_SHOW|PERMS_READ;