Skip to content

Commit f073479

Browse files
committed
Fixes gh-21 Function grant//create doc improvments
1 parent 4fddb17 commit f073479

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

sphinx/book/box/authentication.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ The possible options are:
280280
281281
box.schema.func.create('f', {language = 'C', setuid = false})
282282
283-
Specifying :code:`if_not_exists=true` would cause ``error: Function '...' already
284-
exists`` if the function already exists.
283+
Specifying :code:`if_not_exists=false` would cause ``error: Function '...' already
284+
exists`` if the _func tuple already exists.
285285

286286
Specifying :code:`setuid=true` would cause the setuid flag (the fourth field in
287287
the _func tuple) to have a value meaning "true", and the effect of that is that

sphinx/book/box/box_schema.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,14 @@ available for insert, select, and all the other :ref:`box.space <box_space>` fun
144144
Grant :ref:`privileges <authentication-privileges>` to a user.
145145

146146
: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,
150149
and object-type = 'space' or 'function'.
150+
Or: privilege,'universe'.
151151
Or: role-name.
152152

153+
If :samp:`'function','{object-name}'` is specified, then a _func tuple with that object-name must exist.
154+
153155
**Examples:**
154156

155157
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
162164
Revoke :ref:`privileges <authentication-privileges>` from a user.
163165

164166
: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,
168169
and object-type = 'space' or 'function'.
170+
Or: privilege,'universe'.
169171
Or: role-name.
170172

171173
**Examples:**

0 commit comments

Comments
 (0)