Created
June 27, 2014 03:28
-
-
Save davidmars/b1c0b682e06a88899c74 to your computer and use it in GitHub Desktop.
Define what kind of users we will play with...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//paste this code somewhere in your project config.... | |
//define what kind of users we will play with... | |
Boot::$events->addEventListener(EVENT_BUILD_MODEL,function($recordType){ | |
if($recordType=="R_user"){ | |
R_user::$roleAdminTextOnlyEnabled=false; | |
R_user::$roleSimpleHumanEnabled=false; | |
R_user::$roleWriterEnabled=false; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment