This discussion has been migrated from our Github Discussion #7156
abdonrd136d ago
In the new RBAC, how the Is creator
works in the Author
role?
This discussion has been migrated from our Github Discussion #7156
In the new RBAC, how the Is creator
works in the Author
role?
Responses to the discussion on Github
Maintainer
Hello! All this logic is managed by the findEntityAndCheckPermissions
in the Content Manager.
To answer your question, the user of this role will be able to delete only Links that have been created by him.
Author
@lauriejim thanks Jim! But how Strapi knows if have been created by him?
Maintainer
A relation is automatically created (like the created_at
and updated_at
)
A field created_by
exist
Author
And what about all the information that was created before v3.1.0
?
Maintainer
That’s a good question.
@alexandrebodin any insight on that?
alexandrebodin](alexandrebodin (Alexandre BODIN) · GitHub)136d ago
Maintainer
Data that don’t have a creator can be edited by editors and admin not authors as an author can only edit its own content
Maintainer
@abdonrd You could always create migration in DB (update to set the created_by id) if you really need to but we decided that there was no right choice depending on user needs.
Author
Thanks both!
Maintainer
Thank you for the info @alexandrebodin