Project

General

Profile

Actions

Bug #27310

open

Bug #27211: Cannot remove all rights from a user who has a single role, from the User management GUI

User management API permissions in responses are empty when not updating them

Added by Clark ANDRIANASOLO about 1 month ago. Updated 8 days ago.

Status:
Pending release
Priority:
1 (highest)
Category:
API
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Effort required:
Small
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

When updating a user with POST /usermanagement/update/<username>, the request could contain some permission (which is made optional with the parent issue #27211).

But when not updating the user permissions, we never return the current user's permissions in the JSON response but we always return an empty list (because the permissions field is always in the response and we need some value for it). This is not right, we need the users actual permissions in the file


Subtasks 1 (1 open0 closed)

Bug #27449: Fix spotless in 27310Pending releaseVincent MEMBRÉActions
Actions #1

Updated by Clark ANDRIANASOLO 15 days ago

  • Status changed from New to In progress
Actions #2

Updated by Clark ANDRIANASOLO 15 days ago

  • Status changed from In progress to Pending technical review
  • Pull Request set to https://github.com/Normation/rudder/pull/6562
Actions #3

Updated by Clark ANDRIANASOLO 8 days ago

  • Status changed from Pending technical review to Pending release
Actions #4

Updated by Clark ANDRIANASOLO 8 days ago

  • Subtask #27449 added
Actions

Also available in: Atom PDF