Skip to content

Commit

Permalink
Rename ManageUsers to PloneManageUsers
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleybl committed Dec 20, 2023
1 parent b5fce2b commit e85249c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/plone/restapi/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# permissions. Granted to Anonymous (i.e. everyone) by default via rolemap.xml

UseRESTAPI = "plone.restapi: Use REST API"
ManageUsers = "Plone Site Setup: Users and Groups"
PloneManageUsers = "Plone Site Setup: Users and Groups"
4 changes: 2 additions & 2 deletions src/plone/restapi/serializer/group.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from plone.restapi.batching import HypermediaBatch
from plone.restapi.interfaces import ISerializeToJson
from plone.restapi.interfaces import ISerializeToJsonSummary
from plone.restapi.permissions import ManageUsers
from plone.restapi.permissions import PloneManageUsers
from plone.restapi.serializer.utils import check_permission
from Products.CMFCore.permissions import ManagePortal
from Products.PlonePAS.interfaces.group import IGroupData
Expand All @@ -22,7 +22,7 @@ def is_zope_manager(self):

@property
def can_manage_users(self):
return check_permission(ManageUsers, self.context)
return check_permission(PloneManageUsers, self.context)

def can_delete(self, roles):
if self.is_zope_manager:
Expand Down
4 changes: 2 additions & 2 deletions src/plone/restapi/serializer/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from plone.restapi.bbb import safe_text
from plone.restapi.interfaces import ISerializeToJson
from plone.restapi.interfaces import ISerializeToJsonSummary
from plone.restapi.permissions import ManageUsers
from plone.restapi.permissions import PloneManageUsers
from plone.restapi.serializer.converters import json_compatible
from plone.restapi.serializer.utils import check_permission
from plone.restapi.services.users.get import getPortraitUrl
Expand All @@ -28,7 +28,7 @@ def is_zope_manager(self):

@property
def can_manage_users(self):
return check_permission(ManageUsers, self.context)
return check_permission(PloneManageUsers, self.context)

def can_delete(self, roles):
if self.is_zope_manager:
Expand Down

0 comments on commit e85249c

Please sign in to comment.