#Can I create role in Payload Admin and sell the seat

1 messages · Page 1 of 1 (latest)

lusty reef
#

I wanna crete administration for imagine scenario on youtube

  • creator (admin part - to upload videos) but the creator is still user - he just registered or paid
  • user

Can I do this with payload ? Is it safe ?

lusty reef
#

Can you help me out ? @summer haven

summer haven
#

I do not understand your requirements. Please explain it in more detail.

lusty reef
#

So - I wanna create app using payload
My idea is that I will allow certain users to edit certain things.

  • user - will just view the cotent
  • creator - normal user registered as a creator - will have
  • admin - (all the rigts - delete users and so)
summer haven
#

that's a core feature 🙂
https://payloadcms.com/docs/access-control/overview

With RBAC (role based access management) you have.

  • anonymous (public, not logged in)
  • user (logged in)
    Each user can have roles, like admin , user, creator.
    Roles are then used for access control Boolean(user?.roles?.includes('admin')) .

Once you start reading the docs and starting your project, you will learn a lot and things will make sense.

Payload

Payload is a headless CMS and application framework built with TypeScript, Node.js, React and MongoDB

#

PayloadCMS on in Next.js is game changer