You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create functions to check roles and approval (i.e. isApprovedCompany, isApprovedEmployer). Let's include this in a file called role-management.ts stored in app/lib
non-exhaustive examples:
isAdmin()
isApprovedEmployer()
isJobseeker()
isApprovedEducator()
import auth into validation functions to read session info.
We do not want to move permissions inside of server functions because we want to keep permissions decoupled from the function for reuse in other instances.
The text was updated successfully, but these errors were encountered:
Create functions to check roles and approval (i.e. isApprovedCompany, isApprovedEmployer). Let's include this in a file called
role-management.ts
stored inapp/lib
non-exhaustive examples:
We do not want to move permissions inside of server functions because we want to keep permissions decoupled from the function for reuse in other instances.
The text was updated successfully, but these errors were encountered: