Skip to content
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

Add call to delete Users to the remote API #2402

Merged
merged 2 commits into from May 24, 2018
Merged

Conversation

micgro42
Copy link
Collaborator

No description provided.

public function deleteUsers($usernames)
{
if (!auth_isadmin()) {
return false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should throw a RemoteAccessDeniedException

public function deleteUsers($usernames)
{
if (!auth_isadmin()) {
throw new RemoteAccessDeniedException('Only admins are allowed to delte users', 114);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delte ->delete

@micgro42 micgro42 merged commit 2cceef4 into master May 24, 2018
@micgro42 micgro42 deleted the remoteDeleteUsers branch May 24, 2018 08:04
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.

None yet

3 participants