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
When not having paid subscription you won't get the unauthorized access page.
This is for several reasons:
on the dashboard layout.tsx -> code is checking for authorization but it's only logging not implementing logic to prevent access to the dashboard. To fix it do this in the DashboardLayout:
if (!authorized) { console.log('authorized check fired') return <NotAuthorized /> }
in the utils -> isAuthorized.ts it is looking into the wrong config file, fix the config file import:
import config from "@/config";
The logic that is checking for the subscription is also broken when someone subscribes and then cancles and then subscribes again it won't count it as active membership as it will retrieve all the subscriptions even the cancelled one so alter the logic there to this:
When not having paid subscription you won't get the unauthorized access page.
This is for several reasons:
if (!authorized) { console.log('authorized check fired') return <NotAuthorized /> }
import config from "@/config";
The text was updated successfully, but these errors were encountered: