| | |
| | |
|
| | | UserModel user = (UserModel) request.getUserPrincipal();
|
| | |
|
| | | boolean allowManagement = user != null && user.canAdmin
|
| | | boolean allowManagement = user != null && user.canAdmin()
|
| | | && GitBlit.getBoolean(Keys.web.enableRpcManagement, false);
|
| | |
|
| | | boolean allowAdmin = user != null && user.canAdmin
|
| | | boolean allowAdmin = user != null && user.canAdmin()
|
| | | && GitBlit.getBoolean(Keys.web.enableRpcAdministration, false);
|
| | |
|
| | | Object result = null;
|
| | |
| | | }
|
| | | } else if (RpcRequest.CLEAR_REPOSITORY_CACHE.equals(reqType)) {
|
| | | // clear the repository list cache
|
| | | if (allowAdmin) {
|
| | | if (allowManagement) {
|
| | | GitBlit.self().resetRepositoryListCache();
|
| | | } else {
|
| | | response.sendError(notAllowedCode);
|