Project

General

Profile

Actions

bug #7585

closed

RegistrationCuratorRoleProbe does not only check the ROLE_CURATION

Added by Andreas Kohlbecker over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Highest
Category:
cdm-vaadin
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
normal
Found in Version:
Tags:

Description

the check done in this class seems wrong:


return a.equals(RolesAndPermissions.ROLE_CURATION)
                        // doing faster regex check here instreas of using CdmAuthoritiy.fromString()
                        || a.getAuthority().matches("^Registration\\.\\[.*UPDATE");

Can it be replaced by the new eu.etaxonomy.cdm.api.utility.RoleProber?

Actions

Also available in: Atom PDF