-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
535a837
commit 6537f3e
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |