Changeset 365 in main


Ignore:
Timestamp:
10/03/11 14:23:21 (8 years ago)
Author:
pcosquer
Message:

add a new setting : "company" and a create_company command

Location:
trunk/openPLM
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/controllers/plmobject.py

    r364 r365  
    391391    def check_permission(self, role, raise_=True): 
    392392        if not bool(self.group.user_set.filter(id=self._user.id)): 
    393             raise PermissionError("action not allowed for %s" % self._user) 
     393            if raise_: 
     394                raise PermissionError("action not allowed for %s" % self._user) 
     395            else: 
     396                return False 
    394397        return super(PLMObjectController, self).check_permission(role, raise_) 
    395398 
  • trunk/openPLM/settings.py

    r360 r365  
    132132RESTRICT_EMAIL_TO_DOMAINS = False 
    133133 
     134COMPANY = "company" 
     135 
Note: See TracChangeset for help on using the changeset viewer.