My favorites | Sign in
Project Home Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 279: Some permissions are hard coded based on group name
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Feb 2012


 
Project Member Reported by dmbs...@gmail.com, Feb 9, 2012
This makes changing permission group names impossible. Faculty shouldn't even be a group. is_staff implies it but we still need some way to make staff have access to a few perms. 

Evil string of commands to find hardcoded groups:
find -name '*.py' | xargs grep -Fi '.groups.' | sed 's/)/)\n/g' | grep 'name=' | sed "s/^.*name=['\"]\(.*\)['\"].*$/\1/" | sort | uniq

Currently, these are:
company
cwsp
faculty
registrar
students
teacher
viewer

From the master:

3:58 PM 
David: faculty comes from me thinking it meant anyone who works at a school
3:59 PM 
so anyone who isn't a student nor supervisor
  
it might be hard coded
Feb 17, 2012
Project Member #1 dmbs...@gmail.com
I removed the most obvious cases. We still use students, faculty, and company to determine some things. Ideally though it should be possible to create groups like registrar by another name.

Exception is import, which is going to be redone anyway.
Status: Fixed
Feb 17, 2012
Project Member #2 da...@burkesoftware.com
This issue was closed by revision 1f97a46991cb.

Powered by Google Project Hosting