Skip to content

Commit f17874b

Browse files
author
Jeff
committed
restore jsdoc
1 parent 6085f57 commit f17874b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/security/kuzzleSecurity.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ KuzzleSecurity.prototype.roleFactory = function(id, content) {
254254
*
255255
*
256256
* @param {string} id
257+
* @param {object} [options] - (optional) arguments
257258
* @param {responseCallback} cb - returns Kuzzle's response
258259
*/
259260
KuzzleSecurity.prototype.getProfile = function (id, options, cb) {
@@ -293,6 +294,7 @@ KuzzleSecurity.prototype.getProfile = function (id, options, cb) {
293294
* That means that a profile that was just been created won’t be returned by this function.
294295
*
295296
* @param {Object} filters - this object can contains an array `roles` with a list of roles id, a integer `from` and a integer `size`
297+
* @param {object} [options] - (optional) arguments
296298
* @param {responseCallback} [cb] - returns Kuzzle's response
297299
*/
298300
KuzzleSecurity.prototype.searchProfiles = function (filters, options, cb) {
@@ -467,6 +469,7 @@ KuzzleSecurity.prototype.profileFactory = function(id, content) {
467469
* Get a specific user from kuzzle using its unique ID
468470
*
469471
* @param {string} id
472+
* @param {object} [options] - (optional) arguments
470473
* @param {responseCallback} cb - returns Kuzzle's response
471474
*/
472475
KuzzleSecurity.prototype.getUser = function (id, options, cb) {
@@ -504,6 +507,7 @@ KuzzleSecurity.prototype.getUser = function (id, options, cb) {
504507
* That means that a user that was just been created won’t be returned by this function.
505508
*
506509
* @param {Object} filters - same filters as documents filters
510+
* @param {object} [options] - (optional) arguments
507511
* @param {responseCallback} [cb] - returns Kuzzle's response
508512
*/
509513
KuzzleSecurity.prototype.searchUsers = function (filters, options, cb) {
@@ -727,8 +731,9 @@ KuzzleSecurity.prototype.isActionAllowed = function(rights, controller, action,
727731
/**
728732
* Gets the rights array of a given user.
729733
*
730-
* @param {string} userId The id of the user.
731-
* @param {function} cb The callback containing the normalized array of rights.
734+
* @param {string} userId The id of the user.
735+
* @param {object} [options] - (optional) arguments
736+
* @param {function} cb The callback containing the normalized array of rights.
732737
*/
733738
KuzzleSecurity.prototype.getUserRights = function (userId, options, cb) {
734739
var

0 commit comments

Comments
 (0)