Mikey
Well-known member
I've searched the Development Questions / Development Tutorials forums, and all I've found is posts which say I should check permissions from the Model..
My Add on doesn't have a Model for the simple reason that it doesn't need one. I need to check if the user is an admin from the controller. I don't know how to do this..
Going back to the model thing, I suppose I could call from the User Model to check permissions from there with XenForo_Permission:: - but I'm still unsure of the general route I should be taking from there, could anyone help me out by shedding some light?
Thanks
My Add on doesn't have a Model for the simple reason that it doesn't need one. I need to check if the user is an admin from the controller. I don't know how to do this..
Going back to the model thing, I suppose I could call from the User Model to check permissions from there with XenForo_Permission:: - but I'm still unsure of the general route I should be taking from there, could anyone help me out by shedding some light?
Thanks