Skip to content

Commit 57ddf2e

Browse files
authored
Hotfix (#277)
* fix(state): * fix(permission): replace name
1 parent 456317d commit 57ddf2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lin/utils/util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ Utils.hasPermission = (auths, route, user) => {
194194
if (user && user.isSuper) {
195195
return true
196196
}
197-
if (route.right) {
198-
return auths.some(auth => route.right.indexOf(auth) > -1)
197+
if (route.permission) {
198+
return auths.some(auth => route.permission.indexOf(auth) > -1)
199199
}
200200
return true
201201
}

0 commit comments

Comments
 (0)