diff client/src/router.js @ 2277:5f3110aa1ad1

made configuration page accessible for waterway admins User roles define what the configuration page shows.
author Markus Kottlaender <markus@intevation.de>
date Fri, 15 Feb 2019 10:57:50 +0100
parents 733cfc3db48a
children c98491f9c466
line wrap: on
line diff
--- a/client/src/router.js	Fri Feb 15 10:44:45 2019 +0100
+++ b/client/src/router.js	Fri Feb 15 10:57:50 2019 +0100
@@ -71,8 +71,8 @@
         requiresAuth: true
       },
       beforeEnter: (to, from, next) => {
-        const isSysadmin = store.getters["user/isSysAdmin"];
-        if (!isSysadmin) {
+        const isWaterwayAdmin = store.getters["user/isWaterwayAdmin"];
+        if (!isWaterwayAdmin) {
           next("/");
         } else {
           next();