<tr><td>LIST_REPOSITORY_TEAMS</td><td>repository name</td><td><em>admin</em></td><td>2</td><td>-</td><td>List<String></td></tr>\r
<tr><td>SET_REPOSITORY_TEAMS</td><td>repository name</td><td><em>admin</em></td><td>2</td><td>List<String></td><td>-</td></tr>\r
<tr><td>LIST_SETTINGS</td><td>-</td><td><em>admin</em></td><td>1</td><td>-</td><td>ServerSettings (management keys)</td></tr>\r
+<tr><td>CLEAR_REPOSITORY_CACHE</td><td>-</td><td><em>-</em></td><td>4</td><td>-</td><td>-</td></tr>\r
<tr><td colspan='6'><em>web.enableRpcAdministration=true</em></td></tr>\r
<tr><td>LIST_FEDERATION_REGISTRATIONS</td><td>-</td><td><em>admin</em></td><td>1</td><td>-</td><td>List<FederationModel></td></tr>\r
<tr><td>LIST_FEDERATION_RESULTS</td><td>-</td><td><em>admin</em></td><td>1</td><td>-</td><td>List<FederationModel></td></tr>\r
<tr><td>LIST_SETTINGS</td><td>-</td><td><em>admin</em></td><td>1</td><td>-</td><td>ServerSettings (all keys)</td></tr>\r
<tr><td>EDIT_SETTINGS</td><td>-</td><td><em>admin</em></td><td>1</td><td>Map<String, String></td><td>-</td></tr>\r
<tr><td>LIST_STATUS</td><td>-</td><td><em>admin</em></td><td>1</td><td>-</td><td>ServerStatus (see example below)</td></tr>\r
-<tr><td>CLEAR_REPOSITORY_CACHE</td><td>-</td><td><em>admin</em></td><td>4</td><td>-</td><td>-</td></tr>\r
</table>\r
\r
### RPC/HTTP Response Codes\r
public static enum RpcRequest {\r
// Order is important here. anything above LIST_SETTINGS requires\r
// administrator privileges and web.allowRpcManagement.\r
- GET_PROTOCOL, LIST_REPOSITORIES, LIST_BRANCHES, LIST_SETTINGS,\r
+ CLEAR_REPOSITORY_CACHE, GET_PROTOCOL, LIST_REPOSITORIES, LIST_BRANCHES, LIST_SETTINGS,\r
CREATE_REPOSITORY, EDIT_REPOSITORY, DELETE_REPOSITORY, \r
LIST_USERS, CREATE_USER, EDIT_USER, DELETE_USER, \r
LIST_TEAMS, CREATE_TEAM, EDIT_TEAM, DELETE_TEAM,\r
LIST_REPOSITORY_MEMBERS, SET_REPOSITORY_MEMBERS, LIST_REPOSITORY_TEAMS, SET_REPOSITORY_TEAMS, \r
LIST_FEDERATION_REGISTRATIONS, LIST_FEDERATION_RESULTS, LIST_FEDERATION_PROPOSALS, LIST_FEDERATION_SETS,\r
- EDIT_SETTINGS, LIST_STATUS, CLEAR_REPOSITORY_CACHE;\r
+ EDIT_SETTINGS, LIST_STATUS;\r
\r
public static RpcRequest fromName(String name) {\r
for (RpcRequest type : values()) {\r
}\r
} else if (RpcRequest.CLEAR_REPOSITORY_CACHE.equals(reqType)) {\r
// clear the repository list cache\r
- if (allowAdmin) {\r
+ if (allowManagement) {\r
GitBlit.self().resetRepositoryListCache();\r
} else {\r
response.sendError(notAllowedCode);\r