Commit 54e3659f by Tuomas Riihimäki

Backend function for previous commit

1 parent fe527198
......@@ -45,6 +45,11 @@ public class MapView extends GenericCDIView {
private static final Logger logger = LoggerFactory.getLogger(MapView.class);
public void initViewMap()
{
super.requirePermissions(MapPermission.VIEW);
}
public boolean canView() {
return permbean.hasPermission(MapPermission.VIEW);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!