Changeset 1184:92bcf3fa79e4


Ignore:
Timestamp:
06/27/11 08:52:18 (11 months ago)
Author:
Carsten Senger <senger@…>
Branch:
bundestag
Tags:
tip
Message:

Add permission global.organization and remove user.vote permission if present

Location:
adhocracy/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • adhocracy/lib/auth/user.py

    r1076 r1184  
    4040 
    4141def vote(): 
     42    if has('global.organization'): 
     43        return False 
    4244    return c.instance and c.user and has('vote.cast') 
  • adhocracy/lib/install.py

    r1182 r1184  
    9292    mk_perm("global.admin", admins) 
    9393    mk_perm("global.member", admins) 
     94    mk_perm("global.organization", organization) 
    9495 
    9596    model.meta.Session.commit() 
Note: See TracChangeset for help on using the changeset viewer.