@classmethod<EOL><INDENT>def _get_adjusted_true_permissions(cls, user):<DEDENT>
from rolepermissions.permissions import available_perm_status<EOL>default_true_permissions = set()<EOL>user_permission_states = available_perm_status(user)<EOL>adjusted_true_permissions = set()<EOL>for role in get_user_roles(user):<EOL><INDENT>default_true_permissions.update(role.get_default_true_permissions())<EOL><DEDENT>for permission in default_true_permissions:<EOL><INDENT>if user_permission_states[permission.codename]:<EOL><INDENT>adjusted_true_permissions.add(permission)<EOL><DEDENT><DEDENT>return adjusted_true_permissions<EOL>
Get all true permissions for a user excluding ones that
have been explicitly revoked.