Class RestPermissionCheck
- java.lang.Object
-
- com.atlassian.bamboo.plugins.rest.common.RestPermissionCheck
-
@Component public class RestPermissionCheck extends Object
This is a temporary change to return the right http response code. The current usedRestHelper
throws anAccessDeniedException
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
Constructors Constructor Description RestPermissionCheck(com.atlassian.sal.api.message.I18nResolver i18nResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assertRestrictedAdminPermission()
void
assertSystemAdminPermission()
-