[Master Page Extra CSS classes, SecurityHelper]
- Renamed and reworked and few permissions-discovery utility methods in SecurityHelper
- Checking for FullControl looks for FullMask on current web
- Checking for Approver checks for Approve perms on root of Pages lib OR on current list item OR on current folder
- Checking for Contribute perms checks in the same way as Approver checks
- Checking for IsCurrentUserVisitor looks for read permissions on current item, and that user isn't FullControl, Approver or Contributor.
- All this logic isn't very re-usable, but it's handy if you want to hide the ribbon with some CSS (but keep it visible for anyone who might want to contribute)