I’ve honestly exhausted a search on a possible explanation for this before posting, so please your help will be appreciated.
I’m trying something as simple as using checkAccess to see if user is admin however I’m not getting any results…I’m stumped. I’m accessing it in a view file, where the objective is to show a specific link for admins (and in the future, I will have respective links of other users/user groups).
My question is why isn’t " Yii::app()->user->checkAccess(‘admin’) " working when the user is logged in as admin?
am I lacking the required braincells to figure this out lol please help?