[Fix bug 997275] Add dynamic groups to PermissionMixin.