sumocoders/Simple-Application-Framework — pull request #59 by turanct (2014-10-02 14:36:53+00:00)
Title: Add a userIs() method to the BaseAction for easy user type discovery

With this method in place you'll never have to write the in_array call
in your actions anymore to check if a user has a certain role. Just do
this instead: `$this->userIs(array('admin'))`, and you're ready!