Class RestPermissionCheck


  • @Component
    public class RestPermissionCheck
    extends Object
    This is a temporary change to return the right http response code. The current used RestHelper throws an AccessDeniedException which maps to 401 not 403. However we don't want to fix it atm because it is an API change. This class should be removed after we have the fix.
    Since:
    5.9
    • Constructor Detail

      • RestPermissionCheck

        @Autowired
        public RestPermissionCheck​(com.atlassian.sal.api.message.I18nResolver i18nResolver)
    • Method Detail

      • assertRestrictedAdminPermission

        public void assertRestrictedAdminPermission()
      • assertSystemAdminPermission

        public void assertSystemAdminPermission()