Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Update user meta with view_staff permission

akjanikefa3f766c65e
diff --git a/saleor/userprofile/models.py b/saleor/userprofile/models.py
index b1f0b5051c..fd29e01859 100644
--- a/saleor/userprofile/models.py
+++ b/saleor/userprofile/models.py
@@ -164,6 +164,8 @@ class User(PermissionsMixin, AbstractBaseUser, index.Indexed):
pgettext_lazy('Permission description', 'Can view groups')),
('edit_group',
pgettext_lazy('Permission description', 'Can edit groups')),
+ ('view_staff',
+ pgettext_lazy('Permission description', 'Can view staff')),
)
def get_full_name(self):