app/soc/views/helper/access.py
changeset 1315 7c58f5cdd5b8
parent 1309 ba51a0cd311d
child 1318 3f41f33a4ad2
equal deleted inserted replaced
1314:b832e02d70c1 1315:7c58f5cdd5b8
   353 
   353 
   354     Args:
   354     Args:
   355       roles: a list of roles to check
   355       roles: a list of roles to check
   356     """
   356     """
   357 
   357 
       
   358     try:
       
   359       # we need to check manually, as we must return True!
       
   360       self.checkIsDeveloper(django_args)
       
   361       return True
       
   362     except out_of_band.Error:
       
   363       pass
       
   364 
   358     for role in roles:
   365     for role in roles:
   359       try:
   366       try:
   360         checker_name, args = self.normalizeChecker(self.MEMBERSHIP[role])
   367         checker_name, args = self.normalizeChecker(self.MEMBERSHIP[role])
   361         self.doCheck(checker_name, django_args, args)
   368         self.doCheck(checker_name, django_args, args)
   362         # the check passed, we can stop now
   369         # the check passed, we can stop now