- dont load all results for repositories in admin
- speed up loading admin repos page by narrowing results based on permissions
- some small speed ups and code optimizations on permission loading
- use new exceptions for branch permissions
- detect if we need to check permissions
- calculate super-admin the same way as regular users for override capabilities
- added new tests for branch permissions
This is now used only for visual display. The old way is still faster for permissions
calculation.
- the extended way will be used in permission summary showing a much more detailed
permission summary for super-admins.