@@ -144,12 +144,14 @@ available for insert, select, and all the other :ref:`box.space <box_space>` fun
144
144
Grant :ref: `privileges <authentication-privileges >` to a user.
145
145
146
146
:param string user-name: the name of the user
147
- :param string privileges: either privilege,object-type,object-name
148
- or privilege,'universe' where privilege =
149
- 'read' or 'write' or 'execute' or a combination
147
+ :param string privileges: privilege,object-type,object-name
148
+ where privilege = 'read' or 'write' or 'execute' or a combination,
150
149
and object-type = 'space' or 'function'.
150
+ Or: privilege,'universe'.
151
151
Or: role-name.
152
152
153
+ If :samp: `'function','{ object-name } ' ` is specified, then a _func tuple with that object-name must exist.
154
+
153
155
**Examples: **
154
156
155
157
box.schema.user.grant('Lena', 'read', 'space', 'tester') |br |
@@ -162,10 +164,10 @@ available for insert, select, and all the other :ref:`box.space <box_space>` fun
162
164
Revoke :ref: `privileges <authentication-privileges >` from a user.
163
165
164
166
:param string user-name: the name of the user
165
- :param string privileges: either privilege,object-type,object-name
166
- or privilege,'universe' where privilege =
167
- 'read' or 'write' or 'execute' or a combination
167
+ :param string privileges: privilege,object-type,object-name
168
+ where privilege = 'read' or 'write' or 'execute' or a combination,
168
169
and object-type = 'space' or 'function'.
170
+ Or: privilege,'universe'.
169
171
Or: role-name.
170
172
171
173
**Examples: **
0 commit comments