Skip to content

Commit

Permalink
add privilege pallet readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-aitlahcen committed Oct 12, 2021
1 parent 535a837 commit 6537f3e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions frame/privilege/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Privilege

This pallet implements the privilege traits.
It currently consist of a simple storage, mapping accounts/groups to their privileges/members.
It can be wrapped later in a privilege-governance pallet that would redirect calls to votes,
or any other pallet which would operate filter on the privilege traits.

Arbitrary implementation behavior:
- Assuming we have a group A enforcing a privilege P, adding a user X to A is impossible (P not held by A after the operation).
- Assuming we have a group A enforcing a privilege P, revoking a user X from A is not going to revoke his privilege P.

An alternative implementation would be that promoting/revoking a user in/from a group automatically adjust its privileges.

0 comments on commit 6537f3e

Please sign in to comment.