From: Ben Klang Date: Tue, 31 Jan 2006 03:24:28 +0000 (+0000) Subject: Grant Horde admins permissions to at least view all contexts. This ensures the permi... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9d2332c88965f69371fbe289175b082d39c49058;p=horde.git Grant Horde admins permissions to at least view all contexts. This ensures the permissions system works as expected. git-svn-id: https://svn.alkaloid.net/gpl/shout/trunk@280 06cd67b6-e706-0410-b29e-9de616bca6e9 --- diff --git a/lib/Shout.php b/lib/Shout.php index 5c6bfa459..2021e4255 100644 --- a/lib/Shout.php +++ b/lib/Shout.php @@ -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;