]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/rest: enable iam UserPolicy apis against account users
authorCasey Bodley <cbodley@redhat.com>
Thu, 11 Jan 2024 23:45:55 +0000 (18:45 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 12 Apr 2024 19:34:27 +0000 (15:34 -0400)
commitc40d3e152e82b8891b8b29783f9cc4f29c09457a
tree6118f15050411b9caee4f97df64f0121e8246d74
parente1371735dad0c740ab2145b760f2928a1d0fe791
rgw/rest: enable iam UserPolicy apis against account users

when the authenticated user belongs to an account:
* operate only on that account's users
* match UserName to user's display_name instead of user_id

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 3841906eeb2e64a07c74b746ffe79649627b8d55)
src/rgw/rgw_rest_user_policy.cc
src/rgw/rgw_rest_user_policy.h