Permissions + views bugfix