Finished user permission editing, and enforcing permissions.