8000 Add disabling a user and/or transfering ownership · Pull Request #1296 · wekan/wekan · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add disabling a user and/or transfering ownership #1296

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 4 commits into from Oct 20, 2017
Merged

Add disabling a user and/or transfering ownership #1296

merged 4 commits into from Oct 20, 2017

Conversation

ghost
Copy link
@ghost ghost commented Oct 13, 2017

Add the ability for the admin :

  • disabling a login for a user (not himself)
  • enabling a login for a user
  • transfering the ownership of all user's boards to himself

Request

Possibly fix a bug in models/boards.js line 568

Disable a user (the user is not allowed to login and his login tokens are purged)

curl -H "Authorization: Bearer t7iYB86mXoLfP_XsMegxF41oKT7iiA9lDYiKVtXcctl" \
     -H "Content-type:application/json" \
     -X PUT \
     http://localhost:3000/api/users/ztKvBTzCqmyJ77on8 \
     -d '{ "action": "disableLogin" }'

Enable a user

curl -H "Authorization: Bearer t7iYB86mXoLfP_XsMegxF41oKT7iiA9lDYiKVtXcctl" \
     -H "Content-type:application/json" \
     -X PUT \
     http://localhost:3000/api/users/ztKvBTzCqmyJ77on8 \
     -d '{ "action": "enableLogin" }'

The admin takes the ownership of ALL boards of the user (archived and not archived) where the user is admin on.

curl -H "Authorization: Bearer t7iYB86mXoLfP_XsMegxF41oKT7iiA9lDYiKVtXcctl" \
     -H "Content-type:application/json" \
     -X PUT \
     http://localhost:3000/api/users/ztKvBTzCqmyJ77on8 \
     -d '{ "action": "takeOwnership" }'

This change is Reviewable

soohwa added 4 commits October 13, 2017 08:15
- disabling a login for a user (not himself)
- enabling a login for a user
- transfering the ownership of all user's boards to himself
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0