-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BLOG-175 : Add a field to add existing tags or create non-existent tags - Add a hat field #59
base: develop-2.x
Are you sure you want to change the base?
The head ref may contain hidden characters: "fait99710/am\u00E9lioration-creation-billet"
Conversation
@@ -530,7 +530,7 @@ public String doAddTag( HttpServletRequest request ) | |||
return JsonUtil.buildJsonResponse( new JsonResponse( RESPONSE_BLOG_LOCKED ) ); | |||
} | |||
|
|||
if ( RBACService.isAuthorized( Tag.PROPERTY_RESOURCE_TYPE, strIdTag, Tag.PERMISSION_CREATE, getUser( ) ) ) | |||
if ( RBACService.isAuthorized( Tag.PROPERTY_RESOURCE_TYPE, strIdTag, Tag.PERMISSION_CREATE, getUser( ) == null ? AdminUserService.getAdminUser( request ) : getUser()) ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this fix for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these modifications take into account the evolution requested in the ticket 99710 : improvement of the creation of tickets on O2T
@@ -571,7 +571,7 @@ public String doRemoveTag( HttpServletRequest request ) | |||
return JsonUtil.buildJsonResponse( new JsonResponse( RESPONSE_BLOG_LOCKED ) ); | |||
} | |||
|
|||
if ( RBACService.isAuthorized( Tag.PROPERTY_RESOURCE_TYPE, strIdTag, Tag.PERMISSION_DELETE, getUser( ) ) ) | |||
if ( RBACService.isAuthorized( Tag.PROPERTY_RESOURCE_TYPE, strIdTag, Tag.PERMISSION_DELETE, getUser( ) == null ? AdminUserService.getAdminUser( request ) : getUser() ) ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this fix for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please create a jira for describing the functionality you want to add and do the PR with the jira number?
No description provided.