Created
July 31, 2014 19:55
-
-
Save navarr/daba188f93101f67e1ba to your computer and use it in GitHub Desktop.
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 | |
namespace app\rbac; | |
use yii\rbac\Item; | |
use yii\rbac\Rule; | |
class CanGoToHell extends Rule | |
{ | |
/** | |
* Executes the rule. | |
* | |
* @param Item $item the auth item that this rule is associated with | |
* @param array $params parameters passed to [[ManagerInterface::allow()]]. | |
* @return boolean a value indicating whether the rule permits the auth item it is associated with. | |
*/ | |
public function execute($item, $params) | |
{ | |
return true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment