fix(rbac): adjust the role names
This commit is contained in:
parent
9dfffd90d0
commit
7a8a5926ab
|
@ -34,7 +34,7 @@
|
|||
-define(DEFAULT_APP_SECRET, <<"default_app_secret">>).
|
||||
|
||||
%% from emqx_dashboard/include/emqx_dashboard_rbac.hrl
|
||||
-define(ROLE_API_SUPERUSER, <<"api_administrator">>).
|
||||
-define(ROLE_API_SUPERUSER, <<"administrator">>).
|
||||
|
||||
request_api(Method, Url, Auth) ->
|
||||
request_api(Method, Url, [], Auth, []).
|
||||
|
|
|
@ -25,9 +25,9 @@
|
|||
-define(ROLE_SUPERUSER, <<"administrator">>).
|
||||
-define(ROLE_DEFAULT, ?ROLE_SUPERUSER).
|
||||
|
||||
-define(ROLE_API_VIEWER, <<"api_viewer">>).
|
||||
-define(ROLE_API_SUPERUSER, <<"api_administrator">>).
|
||||
-define(ROLE_API_PUBLISHER, <<"api_publisher">>).
|
||||
-define(ROLE_API_VIEWER, <<"viewer">>).
|
||||
-define(ROLE_API_SUPERUSER, <<"administrator">>).
|
||||
-define(ROLE_API_PUBLISHER, <<"publisher">>).
|
||||
-define(ROLE_API_DEFAULT, ?ROLE_API_SUPERUSER).
|
||||
|
||||
-endif.
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
-include_lib("snabbkaffe/include/snabbkaffe.hrl").
|
||||
|
||||
-define(ROLE_SUPERUSER, <<"administrator">>).
|
||||
-define(ROLE_API_SUPERUSER, <<"api_administrator">>).
|
||||
-define(ROLE_API_SUPERUSER, <<"administrator">>).
|
||||
-define(BOOTSTRAP_BACKUP, "emqx-export-test-bootstrap-ce.tar.gz").
|
||||
|
||||
all() ->
|
||||
|
|
Loading…
Reference in New Issue