-
Notifications
You must be signed in to change notification settings - Fork 43
Adds box.schema.user.enable and box.schema.user.disable methods #5123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
81ffdec
Adds box.schema.user.enable and box.schema.user.disable methods descr…
AArdeev f69a513
Fix typo in page heading
AArdeev 0c0e2c1
Updates description by comments
AArdeev 7d55ae3
Updates .._disable description by comments
AArdeev e4162dc
Udates by comments
AArdeev 8167e3f
RST syntax fix
AArdeev 6c9e8a1
Fixes comments
AArdeev a531918
Fixes rst syntax
AArdeev b12f6f0
Fixes rst syntax
AArdeev 50e0740
Fix rst syntax
AArdeev 6a85e35
Updates by comments
AArdeev c2ec389
Updates by comments
AArdeev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.. _box_schema-user_disable: | ||
|
||
=============================================================================== | ||
box.schema.user.disable() | ||
=============================================================================== | ||
|
||
.. module:: box.schema | ||
|
||
.. function:: box.schema.user.disable(username) | ||
|
||
Initiates the :samp:`box.schema.user.revoke('{username}','usage,session','universe',nil,` :code:`{if_exists=true})` | ||
(see section :ref:`box.schema.user.revoke <box_schema-user_revoke>`). | ||
Totktonada marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
:param string username: the name of a user to be deactivated | ||
|
||
:return: (if success) ``---`` | ||
Totktonada marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
(if failure) ``error: User 'username' is not found`` | ||
Totktonada marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
|
||
**Example:** | ||
Totktonada marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
.. code-block:: lua | ||
|
||
box.schema.user.disable (username) | ||
Totktonada marked this conversation as resolved.
Show resolved
Hide resolved
Totktonada marked this conversation as resolved.
Show resolved
Hide resolved
|
||
--- | ||
Totktonada marked this conversation as resolved.
Show resolved
Hide resolved
|
Totktonada marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.. _box_schema-user_enable: | ||
|
||
=============================================================================== | ||
box.schema.user.enable() | ||
=============================================================================== | ||
|
||
.. module:: box.schema | ||
|
||
.. function:: box.schema.user.enable(username) | ||
|
||
Initiates the :samp:`box.schema.user.grant('{username}','usage,session','universe',nil,` :code:`{if_not_exists=true})` method | ||
(see section :ref:`box.schema.user.grant <box_schema-user_grant>`). | ||
|
||
:param string username: the name of the subject user | ||
|
||
:return: (if success) ``---`` | ||
|
||
(if failure) ``error: User 'username' is not found`` | ||
|
||
**Example:** | ||
|
||
.. code-block:: lua | ||
|
||
box.schema.user.enable (username) | ||
--- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AArdeev marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.