Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

Hey guys is there a way to create policies without a subject? I would like to create permissions to objects that I could then give to roles without having to give a role when creating the policy

Hey everyone, I want to use casbin for my usecase but im having issues in thinking how I could do it, I want to only have my roles and permissions for roles but I dont get how to create resource based permissions and add them to my roles, heres what I want to map

Role Admin
    Permissions:
        view-admin
        create-private-models
        create-public-models
Role User
    Permissions:
        view-admin
        create-public-models

How can I do this in casbin?