c4dt / d-voting

📧 E-Voting platform based on the Dela blockchain
https://dedis.github.io/d-voting
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

migrate admin permission checks #175

Open PascalinDe opened 3 months ago

PascalinDe commented 3 months ago

related to #172

Currently whether someone is administrator or not is decided based on AuthContext which lists the permissions of the given user (a specific combination of permissions indicate an admin user).

Instead whether someone is an admin should directly be decided based on the list of admins managed on the blockchain: https://github.com/c4dt/d-voting/blob/student24spring_access_control/docs/api.md#a3-get-the-adminlist