chore(emqx_authz): fix `rule()` type example
Use `action()` type which is a correct and defined type.
This commit is contained in:
parent
bb5b2d4bda
commit
4dfd3421e7
|
@ -20,7 +20,7 @@
|
||||||
%%
|
%%
|
||||||
%% -type(permission() :: allow | deny).
|
%% -type(permission() :: allow | deny).
|
||||||
%%
|
%%
|
||||||
%% -type(rule() :: {permission(), who(), access(), topics()} | {permission(), all}).
|
%% -type(rule() :: {permission(), who(), action(), topics()} | {permission(), all}).
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
|
|
||||||
{allow, {username, {re, "^dashboard$"}}, subscribe, ["$SYS/#"]}.
|
{allow, {username, {re, "^dashboard$"}}, subscribe, ["$SYS/#"]}.
|
||||||
|
|
Loading…
Reference in New Issue