JS doc fixes
gitea/salix/dev This commit has test failures Details

This commit is contained in:
Juan Ferrer 2019-12-08 11:45:53 +01:00
parent a6c5563513
commit 966c02a0e1
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,7 @@ module.exports = Self => {
*
* @param {Integer} userId The user id
* @param {String} name The role name
* @param {Object} options Options
* @return {Boolean} %true if user has the role, %false otherwise
*/
Self.hasRole = async function(userId, name, options) {
@ -69,6 +70,7 @@ module.exports = Self => {
* Get all user roles.
*
* @param {Integer} userId The user id
* @param {Object} options Options
* @return {Object} User role list
*/
Self.getRoles = async(userId, options) => {