-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
4.6 M3
@Callable public Map<String, Object> getProjectTags() { List<Map<String, Object>> tags = new ArrayList<>(); for (String id : _tagProviderExtPt.getExtensionsIds()) { TagProvider<? extends Tag> tagProvider = _tagProviderExtPt.getExtension(id); Map<String, ? extends Tag> someTags = tagProvider.getTags(Collections.emptyMap()); tags.addAll(_tagsToJSON(someTags.values())); } Map<String, Object> result = new HashMap<>(); result.put("tags", tags); result.put("canCreate", _rightManager.currentUserHasRight(ProjectConstants.RIGHT_PROJECT_HANDLE_TAGS, "/cms") == RightResult.RIGHT_ALLOW); return result; }
only manager can have rights on /cms