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

Rewrite the access control system to only include the moderators #86

Open
3 tasks
ailisp opened this issue Jan 18, 2024 · 0 comments
Open
3 tasks

Rewrite the access control system to only include the moderators #86

ailisp opened this issue Jan 18, 2024 · 0 comments

Comments

@ailisp
Copy link
Collaborator

ailisp commented Jan 18, 2024

The legacy contract had posts and label-based access control system. In the new contract, we'll deprecate posts with near social posts and the proposal workflow, which permissions are managed by Near Social and proposed SputnikDAO contract. Community admins are stored in community metadata. Therefore we don't need most of current permission system. We only need to add, remove and tell an account is a moderator.

Acceptance criteria

  • Clean up access control code from the main contract
  • Implement has_moderator
  • Implement add_moderator and remove_moderator, only allowed by account owner (devhub.near)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant