Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. for each permission that is checked
  2. grab a reference to the group (e.g. a `DirectoryEntry` instance)
  3. if the user isn't in there, add it
  4. commit
  5. for each permission that is not checked
  6. grab a reference to the group (e.g. a `DirectoryEntry` instance)
  7. if the user is in there, remove it
  8. commit
  9.  
  10. Grab a fresh list
  11. Compare to the desired results
  12. Display an error if there is any mismatch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement