Tuesday 05 June 2007 12:34:00 pm
Hello. Now i wanna make an extension. Let's call it "articles". I have two kind of users. Group Users can be A or B. B users have access to "articles", but a Users A haven't. So, if an A user tries to work with articles extension, he is showed an error message. I don't want to show this message to A user. Instead of, i want redirect him to my homepage, so he can login from there. I know i can play with ezUser::hasAccessTo("module") or something like that... but where do i have to do this check? Will it be sufficient if i do it in my module.php file, or should i do for all the views of my extension? Thank you.
|