Commit de92e570 authored by Matija Obreza's avatar Matija Obreza

Removed @PreAuthorize in controller; things are checked on service level

parent 0d6e81d9
......@@ -37,7 +37,6 @@ import org.springframework.context.annotation.Scope;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
......@@ -123,14 +122,12 @@ public class WiewsController extends BaseController {
return "/metadata/index";
}
@PreAuthorize("hasRole('ADMINISTRATOR')")
@RequestMapping("/{wiewsCode}/edit")
public String edit(ModelMap model, @PathVariable(value = "wiewsCode") String wiewsCode) {
view(model, wiewsCode);
return "/wiews/edit";
}
@PreAuthorize("hasRole('ADMINISTRATOR')")
@RequestMapping("/{wiewsCode}/update")
public String update(ModelMap model, @PathVariable(value = "wiewsCode") String wiewsCode, @RequestParam("blurp") String blurp,
@RequestParam("gaTracker") String gaTracker) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment