Welcome Guest, Not a member yet? Register   Sign In
Limiting View Access without editing all Controllers
#8

[eluser]BrentNJ[/eluser]
So if I have a

user.php controller
with functions user_view, user_add, user_edit. each function loads their respective views

user_view.php, user_add.php, user_edit.php


One user may have permissions to do an edit while another may not

I put all the names of the allowable views for that user based on that users role in a session variable

Do I have to check in each function user_view, user_add, user_delete? I have about 10 controllers now. Or can I do that somehow in the User() function?


Messages In This Thread
Limiting View Access without editing all Controllers - by El Forum - 12-04-2008, 09:30 AM
Limiting View Access without editing all Controllers - by El Forum - 12-04-2008, 09:49 AM
Limiting View Access without editing all Controllers - by El Forum - 12-04-2008, 10:26 AM
Limiting View Access without editing all Controllers - by El Forum - 12-04-2008, 11:23 AM
Limiting View Access without editing all Controllers - by El Forum - 12-04-2008, 11:51 AM
Limiting View Access without editing all Controllers - by El Forum - 12-04-2008, 12:05 PM
Limiting View Access without editing all Controllers - by El Forum - 12-04-2008, 12:25 PM
Limiting View Access without editing all Controllers - by El Forum - 12-04-2008, 12:37 PM
Limiting View Access without editing all Controllers - by El Forum - 12-04-2008, 12:58 PM
Limiting View Access without editing all Controllers - by El Forum - 12-04-2008, 01:33 PM
Limiting View Access without editing all Controllers - by El Forum - 12-04-2008, 02:18 PM
Limiting View Access without editing all Controllers - by El Forum - 12-04-2008, 02:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB