View Single Post
  #5 (permalink)  
Old 09-22-2006, 12:20 PM
ben ben is offline
Administrator
 
Join Date: Mar 2007
Posts: 77
ben has disabled reputation
Default Somemore info

You may be wondering whether it is possible to find out all the privileges a user is allowed to perform with just one query. The answer is YES.
This means you could find out all the privileges a user has when they login, store the information in $_SESSION and you won't have to query the database again. Doing it this way, checking a users right to perform a certain action is extremely fast.


You will also be able to find out all the users that are able to perform a certain action on a given object with just one query as well.
Reply With Quote