Additional Info
Type
Package ID
Kays:CustomPermissions
First Created
February 02, 2011, 12:22:07 PM
Last Updated
March 16, 2012, 07:08:46 PM

Custom Permissions v1.1.0

Create custom permissions for scripting purposes
Compatible With 1.1.13, 1.1.14, 1.1.16, 2.0 RC4, 2.0 RC5, 2.0, 2.0.2
Latest version v1.1.0
Downloads 2,806
Reviews 0
Rating 0/5
Subscribers 11
License (View License)
Author(s)
Screenshots
This mod will allow you to create custom permissions. Custom permissions can be used when one is scripting to include or exclude member groups from doing certain actions or viewing certain pages.

Usage:

Permissions are used in conjunction with the allowedTo() function. Which will return either true or false depending on whether the permission is set for that member group or not. As an example, if you create a permission named view_this then it can be used as such:


if (allowedTo('view_this'))
echo 'Yes, you can see this.';
else
echo 'Nope, say goodbye';
Manual installation info
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: