Rework the permission system
|Assignee:||George Notaras||% Done:|
|Category:||-||Estimated time:||5.00 hours|
From the UserProfile docstring:
At this point it is necessary to define what a 'repository admin' is in vcsmanager and what attributes it has: 1. A repository admin is a user who has the 'vcsmanager.can_admin' object permission at least on one repository object. 2. Having the 'vcsmanager.can_admin' object permission on at least one repository object automatically sets the user's is_staff attribute to True, so that the user can login to the Django admin interface and administer the repositories it owns. 3. Having the 'vcsmanager.can_admin' object permission on at least one repository object automatically grants the user the 'vcsmanager.change_repository' on the Repository model (class). But the repository objects the repository admin can actually change depend on each repository's object permissions. Also, the repositories the repository admin sees in the repository changelist in the admin interface are only those it can administer.