File tree Expand file tree Collapse file tree 2 files changed +2
-22
lines changed
code_snippets/snippets/config/instances.enabled/lua_call Expand file tree Collapse file tree 2 files changed +2
-22
lines changed Original file line number Diff line number Diff line change 1- # grant privilege
21credentials :
32 users :
43 alice :
54 privileges :
65 - permissions : [execute]
76 lua_call : [my_func, my_func2]
8-
9- # take away a privilege:
10- credentials :
11- users :
12- alice :
13- privileges :
14- - permissions : [execute]
15- lua_call : [my_func]
16-
17- # take away a privilege:
18- credentials :
19- users :
20- alice :
21- privileges : []
22- # - permissions: [execute]
23- # lua_call: [my_func, my_func2]
Original file line number Diff line number Diff line change @@ -1453,13 +1453,10 @@ credentials.users.*
14531453 This option should be configured together with the ``execute ``
14541454 :ref: `permission <configuration_reference_credentials_privileges_permissions >`.
14551455
1456- To take a previously granted privilege away, specify the ``lua_call `` option without the function name,
1457- or with an empty privileges array (furhter options may retain commented-out).
1458-
14591456 Since version :doc: `3.3.0 </release/3.3.0 >`, the ``lua_call `` option allows granting users privileges to call specified lua function on
1460- the instance in runtime.
1457+ the instance in runtime (thus it doesn't require an ability to write to the database) .
14611458
1462- Example to grant and take away custom functions from the 'alice' user:
1459+ Example to grant custom functions from the 'alice' user:
14631460
14641461 .. literalinclude :: /code_snippets/snippets/config/instances.enabled/lua_call/config.yaml
14651462 :language: yaml
You can’t perform that action at this time.
0 commit comments