1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 17:22:42 +01:00
phorge-phorge/src/applications/people/conduit
epriestley 8cf56913d8 Deprecate "user.enable" and "user.disable" API methods, redefine them in terms of "user.edit"
Summary:
Depends on D19604. Ref T13189. See PHI642. Deprecates these in favor of "user.edit", redefines them in terms of it, and removes the old `disableUser()` method.

I kept the "is admin" permissions check for consistency, since these methods have always said "(admin only)". This check may not be the most tailored check soon, but we can just keep executing it in addition to the real check.

For now, this change stops this method from actually disabling non-bot users (since it implicitly adds a CAN_EDIT requirement, and even administrators don't have that). An upcoming change will fix that.

Test Plan: Enabled and disabled a (bot) user via these methods. Checked API UI, saw them marked as "disabled".

Reviewers: amckinley

Maniphest Tasks: T13189

Differential Revision: https://secure.phabricator.com/D19605
2018-08-27 08:00:48 -07:00
..
UserConduitAPIMethod.php Add "Mailing List" users 2015-06-03 18:42:33 -07:00
UserDisableConduitAPIMethod.php Deprecate "user.enable" and "user.disable" API methods, redefine them in terms of "user.edit" 2018-08-27 08:00:48 -07:00
UserEditConduitAPIMethod.php Add a modern "user.edit" API method for users 2018-08-16 10:48:38 -07:00
UserEnableConduitAPIMethod.php Deprecate "user.enable" and "user.disable" API methods, redefine them in terms of "user.edit" 2018-08-27 08:00:48 -07:00
UserFindConduitAPIMethod.php phtize all the things 2015-05-22 21:16:39 +10:00
UserQueryConduitAPIMethod.php Mark "v3" API methods as stable; mark obsoleted methods as "Frozen" 2017-01-09 07:16:27 -08:00
UserSearchConduitAPIMethod.php Add a modern user.search Conduit API method 2016-05-22 05:54:31 -07:00
UserWhoAmIConduitAPIMethod.php Make OAuth scope handling more flexible 2016-04-05 13:53:33 -07:00