Skip to content

Commit

Permalink
Merge pull request #2106 from SCADA-LTS/fix/#2105_User_non_admin_can_…
Browse files Browse the repository at this point in the history
…add_graphical_views

#2105 User non-admin can add graphical views - fixed name ViewEditCon…
  • Loading branch information
Limraj authored Feb 24, 2022
2 parents 51e318a + e47415e commit 93f506b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@


@Controller
public class ViewEditContorller {
private static final Log LOG = LogFactory.getLog(ViewEditContorller.class);
public class ViewEditController {
private static final Log LOG = LogFactory.getLog(ViewEditController.class);

private static final String SUBMIT_UPLOAD = "upload";
private static final String SUBMIT_CLEAR_IMAGE = "clearImage";
Expand Down Expand Up @@ -86,7 +86,6 @@ public void setUploadDirectory(String uploadDirectory) {
protected ModelAndView showForm(HttpServletRequest request, @RequestParam(value="viewId", required=false) String viewIdStr) throws Exception {
View view;
User user = Common.getUser(request);
Permissions.ensureAdmin(user);

if (viewIdStr != null) {
// An existing view.
Expand Down

0 comments on commit 93f506b

Please sign in to comment.