-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(boards2): board creation and permissions #3211
feat(boards2): board creation and permissions #3211
Conversation
Caller must have a user registered in the users realm or pay a fee to create new boards. Changeset also renames `gAuth` to `gPerm`.
Renamed to follow the preferred name that has been mentioned during board requirements discussions.
Board creation function should not check if the name is duplicated.
This handler deals with permissioner checks for board creation using the `WithPermission` function.
At this point we deal with whitelisted users that are member of the boards realm DAO when creating boards. Anonymous users can't create boards at this point.
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
This validation makes sure only owners can invite other owners.
perms.HandleFunc(PermissionBoardCreate, handleBoardCreate) | ||
perms.HandleFunc(PermissionMemberInvite, handleMemberInvite) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is one way to let the Permissioner
implementation deal with specific permission logic. Not an elegant approach but initially it works, we could improve it and discuss ideas also as another issue.
Related to #3140