Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Wrong actions for non-domain admin user in Users tab of a sidebar #764

Closed
elenaustyugova opened this issue Dec 14, 2017 · 6 comments
Closed

Comments

@elenaustyugova
Copy link
Collaborator

elenaustyugova commented Dec 14, 2017

Steps to reproduce:

  1. Login as a regular user
  2. Go to Accounts section
  3. Choose your account
  4. Open "Users" tab

Expected result: Available actions for users:
for current user:

  • change password
  • regenerate keys

for other users in account: no actions

Actual result: all actions are available (as if user was domain admin)

Connected feature ID: account_user_display, account_user_actionbox

@zolotyx
Copy link
Contributor

zolotyx commented Dec 15, 2017

@ershovaelena , are you sure that we need to hide it?
Native UI allows User to list current account's users

@elenaustyugova
Copy link
Collaborator Author

@zolotyx yes you're right. A user can access Users tab, but actions with users are limited to him. Please take a look at ticket description, it has been changed.

@ksendart will apply changes and resend PR to you.

ksendart added a commit that referenced this issue Dec 15, 2017
@elenaustyugova elenaustyugova changed the title Users tab is available for non-domain admin Wrong actions for non-domain admin user in Users tab of a sidebar Dec 18, 2017
ksendart added a commit that referenced this issue Dec 18, 2017
@ksendart
Copy link
Contributor

Test on: http://cs-ui-ci.z1.netpoint-dc.com:8080/bwsw/764-users-tab
to test: account_user_display, account_user_actionbox

@Nadya913
Copy link
Collaborator

http://cs-ui-ci.z1.netpoint-dc.com:8080/bwsw/764-users-tab
user1234 /1234
user123 / 123

Steps:

  1. Login by develop and go Accounts
  2. Create new user for Account (user1234 was created for user123 account )
  3. Logout and login by new user
  4. See the actions for user tab for Account
    Expected result: for current user: change password, regenerate keys for other users in account: no actions
    Actual result: all options for another user, no actions for current user

Please, see the attach.
anotheruser
current_user

@Nadya913 Nadya913 assigned ksendart and unassigned ksendart and Nadya913 Dec 21, 2017
ksendart added a commit that referenced this issue Dec 21, 2017
@ksendart
Copy link
Contributor

Fixed.
2017-12-21 15-49-26
2017-12-21 15-49-57
2017-12-21 15-50-09

@Nadya913
Copy link
Collaborator

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants