web/views/actions.py
branchtls-sprint
changeset 710 766c881e101f
parent 696 2a5a19185288
child 714 39a2a6673171
equal deleted inserted replaced
703:413675c2d46c 710:766c881e101f
   133     title = _('manage permissions')
   133     title = _('manage permissions')
   134     category = 'moreactions'
   134     category = 'moreactions'
   135     order = 100
   135     order = 100
   136 
   136 
   137     def registered(cls, vreg):
   137     def registered(cls, vreg):
       
   138         super(ManagePermissionsAction, cls).registered(vreg)
   138         if 'require_permission' in vreg.schema:
   139         if 'require_permission' in vreg.schema:
   139             cls.__selectors__ |= relation_possible('require_permission', 'subject', 'EPermission',
   140             cls.__selectors__ |= relation_possible('require_permission', 'subject', 'EPermission',
   140                                                    action='add')
   141                                                    action='add')
   141             
   142             
   142     def url(self):
   143     def url(self):