new User(opts)
User
Parameters:
Name | Type | Description |
---|---|---|
opts |
object | Options |
- Source:
Methods
addUserToBucket(cb)
Send invitation to user
Parameters:
Name | Type | Description |
---|---|---|
cb |
function | callback |
- Source:
authorized(cb)
Retrieve authorized users
Parameters:
Name | Type | Description |
---|---|---|
cb |
function | callback |
- Source:
isAdmin(user, cb)
Check if current user is admin
Parameters:
Name | Type | Description |
---|---|---|
user |
object | |
cb |
string | callback |
- Source:
removeInvitation(email, cb)
Remove invitation
Parameters:
Name | Type | Description |
---|---|---|
email |
string | Invitation email |
cb |
function | callback |
- Source:
removeSelf(email, cb)
Remove yourself from bucket
Parameters:
Name | Type | Description |
---|---|---|
email |
string | User email |
cb |
function | callback |
- Source:
removeUser(cb)
Remove user from bucket
Parameters:
Name | Type | Description |
---|---|---|
cb |
function | callback |
- Source:
upgradeUser(email, role, cb)
Upgrade user permissions
Parameters:
Name | Type | Description |
---|---|---|
email |
string | |
role |
string | Role |
cb |
string | callback |
- Source: