summaryrefslogtreecommitdiff
path: root/FisheyeGallery.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-07-16 15:27:20 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-07-16 15:27:20 +0000
commit9e002302fa11dd3725fc4f61fd7f5b4ba3e4005e (patch)
tree17921796b88717dfa1fb2991cfd39e5fef74402d /FisheyeGallery.php
parentb641efbd6cd5ef80f2abed5da51a28a6c1605a53 (diff)
downloadfisheye-9e002302fa11dd3725fc4f61fd7f5b4ba3e4005e.tar.gz
fisheye-9e002302fa11dd3725fc4f61fd7f5b4ba3e4005e.tar.bz2
fisheye-9e002302fa11dd3725fc4f61fd7f5b4ba3e4005e.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 'FisheyeGallery.php')
-rw-r--r--FisheyeGallery.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/FisheyeGallery.php b/FisheyeGallery.php
index 0fbaeb2..830edb4 100644
--- a/FisheyeGallery.php
+++ b/FisheyeGallery.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/FisheyeGallery.php,v 1.62 2007/06/25 20:02:30 spiderr Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/FisheyeGallery.php,v 1.63 2007/07/16 15:27:20 squareing Exp $
* @package fisheye
*/
@@ -33,13 +33,19 @@ class FisheyeGallery extends FisheyeBase {
// This registers the content type for FishEye galleries
// FYI: Any class which uses a table which inherits from liberty_content should create their own content type(s)
- $this->registerContentType(FISHEYEGALLERY_CONTENT_TYPE_GUID, array('content_type_guid' => FISHEYEGALLERY_CONTENT_TYPE_GUID,
+ $this->registerContentType(
+ FISHEYEGALLERY_CONTENT_TYPE_GUID, array( 'content_type_guid' => FISHEYEGALLERY_CONTENT_TYPE_GUID,
'content_description' => 'Image Gallery',
'handler_class' => 'FisheyeGallery',
'handler_package' => 'fisheye',
'handler_file' => 'FisheyeGallery.php',
'maintainer_url' => 'http://www.bitweaver.org'
- ) );
+ ));
+
+ // Permission setup
+ $this->mViewContentPerm = 'p_fisheye_view';
+ $this->mEditContentPerm = 'p_fisheye_edit';
+ $this->mAdminContentPerm = 'p_fisheye_admin';
}
function isValid() {