Class RestPermissionCheck
java.lang.Object
com.atlassian.bamboo.plugins.rest.common.RestPermissionCheck
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 Summary
ConstructorDescriptionRestPermissionCheck
(com.atlassian.sal.api.message.I18nResolver i18nResolver) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
-
Constructor Details
-
RestPermissionCheck
@Inject public RestPermissionCheck(com.atlassian.sal.api.message.I18nResolver i18nResolver)
-
-
Method Details
-
assertRestrictedAdminPermission
public void assertRestrictedAdminPermission() -
assertSystemAdminPermission
public void assertSystemAdminPermission()
-