diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2023-11-03 08:26:39 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-09 17:33:03 +0000 |
commit | 33cde47e109f65dc27b989cb0194afcccfec9535 (patch) | |
tree | a6452df1aee7038fd5903c4bcc8757f78c5dbff9 /bitbake/lib/hashserv/server.py | |
parent | 1699870a0cf7b5ec3aadd9155cdca5dcf53ae273 (diff) | |
download | poky-33cde47e109f65dc27b989cb0194afcccfec9535.tar.gz |
bitbake: hashserv: Allow self-service deletion
Allows users to self-service deletion of their own user accounts
(meaning, they can delete their own accounts without special
permissions).
(Bitbake rev: 2d4439948a5328a9768bca9eaec221eb82af3cb2)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/hashserv/server.py')
-rw-r--r-- | bitbake/lib/hashserv/server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/hashserv/server.py b/bitbake/lib/hashserv/server.py index 8c3d20b651..439962f782 100644 --- a/bitbake/lib/hashserv/server.py +++ b/bitbake/lib/hashserv/server.py | |||
@@ -709,7 +709,7 @@ class ServerClient(bb.asyncrpc.AsyncServerConnection): | |||
709 | "token": token, | 709 | "token": token, |
710 | } | 710 | } |
711 | 711 | ||
712 | @permissions(USER_ADMIN_PERM, allow_anon=False) | 712 | @permissions(USER_ADMIN_PERM, allow_self_service=True, allow_anon=False) |
713 | async def handle_delete_user(self, request): | 713 | async def handle_delete_user(self, request): |
714 | username = str(request["username"]) | 714 | username = str(request["username"]) |
715 | 715 | ||