Commits

Grzegorz Sobański committed 7f3cc58 Draft

Do not strip numbers from component names for privileges.

  • Participants
  • Parent commits e0892af

Comments (0)

Files changed (1)

File componentpermissions/api.py

     # IPermissionRequestor methods
     
     def _get_permission_name(self, component):
-        name = re.sub('[^a-zA-Z]+', '_', component).strip('_').upper()
+        name = re.sub('[^a-zA-Z0-9]+', '_', component).strip('_').upper()
         if name:
             return 'COMPONENT_%s_VIEW' % (name,)
         else: