Closed not-so-smart closed 2 years ago
This PR replaces property Group#private with Group#closed, and implements the following Group methods/getters:
Group#private
Group#closed
Group#fetch()
Group#update()
Group#transferOwnershipTo()
Group#me
Additionally, it implements the following permission checkers for Members:
Member#isAdmin
Member#isOwner
Member#canLeaveGroup
Member#canUpdateGroup
Member#canAddMembers
Member#canRemoveMembers
Member#canDeleteGroup
Member#canTransferGroup
This PR replaces property
Group#private
withGroup#closed
, and implements the following Group methods/getters:Group#fetch()
Group#update()
Group#transferOwnershipTo()
Group#me
Additionally, it implements the following permission checkers for Members:
Member#isAdmin
Member#isOwner
Member#canLeaveGroup
Member#canUpdateGroup
Member#canAddMembers
Member#canRemoveMembers
Member#canDeleteGroup
Member#canTransferGroup