From 9d2332c88965f69371fbe289175b082d39c49058 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Tue, 31 Jan 2006 03:24:28 +0000 Subject: [PATCH] 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 --- lib/Shout.php | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.11.0