Skip to content

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

Update user meta with edit_staff permission

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