stakwork / sphinx-tribes

Backend for sphinx tribes and bounties. The bounty platform pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
33 stars 60 forks source link

Restrict access to SuperAdmin pt. 2 #1004

Closed ecurrencyhodler closed 8 months ago

ecurrencyhodler commented 11 months ago

Once we are near the end of our epic, we will restrict users to the following people:

We won't be storing this list publicly in a config file because that can be changed easily. This list will be stored in an environment. So the call will first go to the env then config file for super admin. Then Auth will check to see if it's an admin to Superadmin. If not, it shows 401 error.

This blocks stakwork/sphinx-tribes-frontend#186

ecurrencyhodler commented 8 months ago

@elraphty If this has been completed, can you close the issue? If not, let me know so we can prioritize.