Skip to content

Commit 403d0fe

Browse files
committed
Make verify-command work with new developer mode
1 parent 3aff9fb commit 403d0fe

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎plugins/acl/verify-command‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@ fi
1414

1515
[[ -z "$FINGERPRINT" ]] && fail "Access denied. No fingerprint supplied."
1616

17-
read ACL_LEVEL ACL_APPNAME < <(: | pluginhook get-acl "$@")
17+
readarray -t LINES < <(: | pluginhook get-acl "$@")
18+
ACL_LEVEL=${LINES[0]}
19+
ACL_APPNAME=${LINES[1]}
1820

1921
if [[ -z "$ACL_LEVEL" ]] || [[ -z "$ACL_APPNAME" ]]; then
20-
fail "Access denied. You don't have permission to access this app."
22+
fail "Access denied. You don't have permission to access this command."
2123
fi
2224

2325
check_app_name "$ACL_APPNAME"
2426

25-
case "$ACL_APPNAME" in
27+
case "$ACL_LEVEL" in
2628
developer)
2729
if [[ "$NAME" == "developer" ]]; then
2830
if is_fingerprint_allowed "$FINGERPRINT" "developer"; then

0 commit comments

Comments
 (0)