Просмотр исходного кода

fix(acl): fix wrong default ACL rules

JianBo He 2 лет назад
Родитель
Сommit
377127ce72
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/emqx_authz/etc/acl.conf

+ 1 - 1
apps/emqx_authz/etc/acl.conf

@@ -23,7 +23,7 @@
 %% -type(rule() :: {permission(), who(), access(), topics()} | {permission(), all}).
 %% -type(rule() :: {permission(), who(), access(), topics()} | {permission(), all}).
 %%--------------------------------------------------------------------
 %%--------------------------------------------------------------------
 
 
-{allow, {username, "^dashboard?"}, subscribe, ["$SYS/#"]}.
+{allow, {username, {re, "^dashboard?"}}, subscribe, ["$SYS/#"]}.
 
 
 {allow, {ipaddr, "127.0.0.1"}, all, ["$SYS/#", "#"]}.
 {allow, {ipaddr, "127.0.0.1"}, all, ["$SYS/#", "#"]}.