Revision 6d3ee8c8
Added by Katja Luther over 12 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/permission/DescriptionPermissionEvaluator.java | ||
---|---|---|
38 | 38 |
if (authorityString.contains(feature.getLabel()) && evalPermission.permission.equals(authorityPermission.permission)){ |
39 | 39 |
return true; |
40 | 40 |
} |
41 |
if (authority.getAuthority().contains(CdmPermissionClass.DESCRIPTIONBASE.toString())){ |
|
42 |
if (authority.getAuthority().lastIndexOf(".") == authority.getAuthority().indexOf(".") && authority.getAuthority().contains(evalPermission.permission.toString())){ |
|
43 |
return true; |
|
44 |
} |
|
45 |
} |
|
41 | 46 |
} |
42 | 47 |
|
43 | 48 |
return false; |
... | ... | |
53 | 58 |
if (authority.getAuthority().lastIndexOf(".") == authority.getAuthority().indexOf(".") && authority.getAuthority().contains(evalPermission.permission.toString())){ |
54 | 59 |
return true; |
55 | 60 |
}else{ |
61 |
//TODO: das stimmt noch nicht so ganz!!! |
|
56 | 62 |
for (DescriptionElementBase element: elements){ |
57 | 63 |
if (authority.getAuthority().contains(element.getFeature().getLabel()) && authority.getAuthority().contains(evalPermission.permission.toString())){ |
58 | 64 |
return true; |
Also available in: Unified diff
Cascading problems for users having the rights to update taxa but not the explicit right for descriptions fixed