From c241682c31b81b26963f859b512de08a4f714bf7 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Mon, 16 Jul 2007 15:27:21 +0000 Subject: Add m(Admin|Edit|View)ContentPermission to various classes. update LibertyContent::has(Admin|Edit|View)Permission to work with new values. To make use of these new permission checks simply use $gContent->hasEditPermission(). Please check to see if i inserted the correct permissions in all classes. new admin permission added to treasury. --- Pigeonholes.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Pigeonholes.php') diff --git a/Pigeonholes.php b/Pigeonholes.php index 115baa2..64fbe8e 100644 --- a/Pigeonholes.php +++ b/Pigeonholes.php @@ -1,6 +1,6 @@ - * @version $Revision: 1.92 $ + * @version $Revision: 1.93 $ * @package pigeonholes */ @@ -53,6 +53,11 @@ class Pigeonholes extends LibertyAttachable { $this->mContentId = $pContentId; $this->mStructureId = $pStructureId; $this->mContentTypeGuid = PIGEONHOLES_CONTENT_TYPE_GUID; + + // Permission setup + $this->mViewContentPerm = 'p_pigeonholes_view'; + $this->mEditContentPerm = 'p_pigeonholes_edit'; + $this->mAdminContentPerm = 'p_pigeonholes_edit'; // use edit until we find the need for an admin permission } /** -- cgit v1.3