mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-23 11:53:48 +01:00
Add purge flag.
This commit is contained in:
parent
45c67d6b57
commit
580d977aa9
@ -128,8 +128,8 @@ public class AdminController extends BaseController {
|
|||||||
userService.deleteUser(user);
|
userService.deleteUser(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(method = RequestMethod.GET, value = "admin/database/purge")
|
|
||||||
@ResponseStatus(value = HttpStatus.NO_CONTENT)
|
@ResponseStatus(value = HttpStatus.NO_CONTENT)
|
||||||
|
@RequestMapping(method = RequestMethod.GET, value = "admin/database/purge")
|
||||||
public void purgeDB(@RequestParam(required = true) Integer muid, @RequestParam(required = true) Boolean apply) throws UnsupportedEncodingException, WiseMappingException {
|
public void purgeDB(@RequestParam(required = true) Integer muid, @RequestParam(required = true) Boolean apply) throws UnsupportedEncodingException, WiseMappingException {
|
||||||
|
|
||||||
for (int i = 0; i < muid; i++) {
|
for (int i = 0; i < muid; i++) {
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
|
|
||||||
<sec:http use-expressions="true" create-session="stateless" pattern="/service/**">
|
<sec:http use-expressions="true" create-session="stateless" pattern="/service/**">
|
||||||
<sec:intercept-url pattern="/service/admin/users/**" access="isAuthenticated() and hasRole('ROLE_ADMIN')"/>
|
<sec:intercept-url pattern="/service/admin/users/**" access="isAuthenticated() and hasRole('ROLE_ADMIN')"/>
|
||||||
|
<sec:intercept-url pattern="/service/admin/database/**" access="isAuthenticated() and hasRole('ROLE_ADMIN')"/>
|
||||||
<sec:intercept-url pattern="/service/**" access="isAuthenticated() and hasRole('ROLE_USER')"/>
|
<sec:intercept-url pattern="/service/**" access="isAuthenticated() and hasRole('ROLE_USER')"/>
|
||||||
<sec:http-basic/>
|
<sec:http-basic/>
|
||||||
</sec:http>
|
</sec:http>
|
||||||
|
Loading…
Reference in New Issue
Block a user