diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-07-16 15:27:20 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-07-16 15:27:20 +0000 |
| commit | 0fb53175dc3d27027ba5a34efadecad298aa4040 (patch) | |
| tree | 34b568c3ff219b13307485c93dffe6f7de42ea1e /BitNewsletter.php | |
| parent | 7bcd2c20a3a419bc697c44cc6441d167b35893d5 (diff) | |
| download | newsletters-0fb53175dc3d27027ba5a34efadecad298aa4040.tar.gz newsletters-0fb53175dc3d27027ba5a34efadecad298aa4040.tar.bz2 newsletters-0fb53175dc3d27027ba5a34efadecad298aa4040.zip | |
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.
Diffstat (limited to 'BitNewsletter.php')
| -rw-r--r-- | BitNewsletter.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/BitNewsletter.php b/BitNewsletter.php index c65fcc6..1b7125d 100644 --- a/BitNewsletter.php +++ b/BitNewsletter.php @@ -1,12 +1,12 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_newsletters/BitNewsletter.php,v 1.29 2007/06/04 03:51:22 spiderr Exp $ + * $Header: /cvsroot/bitweaver/_bit_newsletters/BitNewsletter.php,v 1.30 2007/07/16 15:27:20 squareing Exp $ * * Copyright (c) 2004 bitweaver.org * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: BitNewsletter.php,v 1.29 2007/06/04 03:51:22 spiderr Exp $ + * $Id: BitNewsletter.php,v 1.30 2007/07/16 15:27:20 squareing Exp $ * * Virtual base class (as much as one can have such things in PHP) for all * derived tikiwiki classes that require database access. @@ -16,7 +16,7 @@ * * @author drewslater <andrew@andrewslater.com>, spiderr <spider@steelsun.com> * - * @version $Revision: 1.29 $ $Date: 2007/06/04 03:51:22 $ $Author: spiderr $ + * @version $Revision: 1.30 $ $Date: 2007/07/16 15:27:20 $ $Author: squareing $ */ /** @@ -44,6 +44,11 @@ class BitNewsletter extends LibertyContent { $this->mNewsletterId = $this->verifyId( $pNlId ) ? $pNlId : NULL; $this->mContentId = $pContentId; $this->mContentTypeGuid = BITNEWSLETTER_CONTENT_TYPE_GUID; + + // Permission setup + //$this->mViewContentPerm = ''; + $this->mEditContentPerm = 'p_newsletters_create'; + $this->mAdminContentPerm = 'p_newsletters_admin'; } function load( $pUserId = NULL ) { |
