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

HPCC-12234 - Should warn if admin is removed #6528

Merged

Conversation

miguelvazq
Copy link

Whenever an administrator removes themselves from being a member of "Administrators" they can potentially lock themselves out of the group due to a auto save feature within ECL Watch. They will continue to be locked out until another administrator adds them back to be a member of administrators. We now provide a confirm dialog to notify the user that they are about to remove the user from being a member of administrator with this commit.

Signed-off: Miguel Vazquez miguel.vazquez@lexisnexis.com

@hpcc-jirabot
Copy link

Jira updated

@miguelvazq
Copy link
Author

@GordonSmith Please review.

@GordonSmith
Copy link
Member

Looks fine

@richardkchapman
Copy link
Member

This looks to me as though it will prompt whenever you remove any use from admin group. The Jira was requesting specifically that we check if you are about to remove yourself from admin group (since you can't undo it).

@miguelvazq
Copy link
Author

I feel that we need to give an administrator a warning (maybe for all instances removal and addition) that they are about to make a change as big as removing a user from an admin group which includes removing themselves.

@richardkchapman
Copy link
Member

By warning any time any user is removed from the admin group, you make it less likely that they will pay any attention to the warning for the much more serious situation when they remove themselves.

@miguelvazq
Copy link
Author

I have modified the code to warn only if you are about to lock yourself out of the admin group using some utilities Gordon has implemented in the framework. @GordonSmith Please re-review.

@richardkchapman
Copy link
Member

Can you fix the commit message to conform to guidelines (no - before the summary line) please

@miguelvazq
Copy link
Author

@richardkchapman Commit message fixed.

@richardkchapman
Copy link
Member

@GordonSmith Please re-review

if (this.inherited(arguments))
return;

WsAccount.MyAccount({
}).then(function (response) {
Copy link
Member

Choose a reason for hiding this comment

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

(Minor) - Indentation is wrong.

Whenever an administrator removes themselves from being a member of "Administrators" they can potentially lock themselves out of the group due to a auto save feature within ECL Watch. Now they will receive a confirm warning them that they are about to lock themselves out of the admin group.

Signed-off-by: Miguel Vazquez <miguel.vazquez@lexisnexis.com>
@miguelvazq
Copy link
Author

@GordonSmith changes made.

@GordonSmith
Copy link
Member

Looks fine - Did you open a Jira for the "dojoConfig.isAdmin"?

@miguelvazq
Copy link
Author

Yes, I have. Here is the issue. https://track.hpccsystems.com/browse/HPCC-10688

richardkchapman added a commit that referenced this pull request Nov 3, 2014
HPCC-12234 - Should warn if admin is removed

Reviewed-By: Gordon Smith <gordon.smith@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
@richardkchapman richardkchapman merged commit cedce94 into hpcc-systems:candidate-5.0.4 Nov 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants