Skip to content

Commit 3deee06

Browse files
committed
Updates by comments
1 parent 1b17014 commit 3deee06

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
1-
# grant privilege
21
credentials:
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]

doc/reference/configuration/configuration_reference.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)