mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
Add purge action.
This commit is contained in:
parent
811cc8a668
commit
0b6c8a5977
@ -131,7 +131,7 @@ public class AdminController extends BaseController {
|
||||
userService.deleteUser(user);
|
||||
}
|
||||
|
||||
@RequestMapping(method = RequestMethod.GET, value = "admin/db/purge", consumes = {"text/plain"})
|
||||
@RequestMapping(method = RequestMethod.GET, value = "admin/database/purge")
|
||||
@ResponseStatus(value = HttpStatus.NO_CONTENT)
|
||||
public void purgeDB(@RequestParam(required = true) int max) throws UnsupportedEncodingException, WiseMappingException {
|
||||
|
||||
|
@ -43,6 +43,7 @@
|
||||
|
||||
<sec:http use-expressions="true" access-denied-page="/c/login">
|
||||
<sec:intercept-url pattern="/c/restful/admin/users/**" access="isAuthenticated() and hasRole('ROLE_ADMIN')"/>
|
||||
<sec:intercept-url pattern="/c/restful/admin/database/**" access="isAuthenticated() and hasRole('ROLE_ADMIN')"/>
|
||||
<sec:intercept-url pattern="/c/**/*" access="isAuthenticated() and hasRole('ROLE_USER')"/>
|
||||
|
||||
<sec:form-login login-page="/c/login"
|
||||
|
Loading…
Reference in New Issue
Block a user