Skip to content
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

Conversation

jeronimoalbi
Copy link
Member

Related to #3140

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.
@jeronimoalbi jeronimoalbi self-assigned this Nov 26, 2024
@github-actions github-actions bot added the 🧾 package/realm Tag used for new Realms or Packages. label Nov 26, 2024
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@jeronimoalbi jeronimoalbi marked this pull request as ready for review November 27, 2024 16:36
Comment on lines +165 to +166
perms.HandleFunc(PermissionBoardCreate, handleBoardCreate)
perms.HandleFunc(PermissionMemberInvite, handleMemberInvite)
Copy link
Member Author

@jeronimoalbi jeronimoalbi Nov 27, 2024

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.

@jeronimoalbi jeronimoalbi merged commit 4027d07 into gnolang:devx/feature/boardsv2 Nov 29, 2024
93 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧾 package/realm Tag used for new Realms or Packages.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant