From a579634b40218f802012570110d31371c44523a6 Mon Sep 17 00:00:00 2001 From: Andrew Walker Date: Mon, 6 Nov 2023 07:34:29 -0500 Subject: [PATCH] Fix typo in READONLY role (#12455) Constants were renamed during review process, and the item granting READONLY role ability to read file attributes was missed resulting in READONLY being unable to read filesystem-related attributes. --- src/middlewared/middlewared/role.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middlewared/middlewared/role.py b/src/middlewared/middlewared/role.py index 03ac7333343e3..3c65df32b642e 100644 --- a/src/middlewared/middlewared/role.py +++ b/src/middlewared/middlewared/role.py @@ -25,7 +25,7 @@ class Role: 'FILESYSTEM_DATA_WRITE']), 'FULL_ADMIN': Role(full_admin=True), - 'READONLY': Role(includes=['FILESYSTEM_READ_ATTRS']), + 'READONLY': Role(includes=['FILESYSTEM_ATTRS_READ']), 'SHARING_ISCSI_EXTENT_READ': Role(), 'SHARING_ISCSI_EXTENT_WRITE': Role(includes=['SHARING_ISCSI_EXTENT_READ']),