Skip to content

Commit

Permalink
edit raw button visibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Mar 11, 2021
1 parent 0e7d430 commit a23e572
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -284,7 +284,8 @@ public StringResourceModel getTitle() {

@Override
public boolean isVisible() {
return WebComponentUtil.isAuthorized(AuthorizationConstants.AUTZ_UI_CONFIGURATION_URL,
return getDetailsPage().isEditingFocus() &&
WebComponentUtil.isAuthorized(AuthorizationConstants.AUTZ_UI_CONFIGURATION_URL,
AuthorizationConstants.AUTZ_UI_CONFIGURATION_DEBUG_URL) &&
!getObjectWrapper().isReadOnly();
}
Expand Down

0 comments on commit a23e572

Please sign in to comment.