In the new RBAC, how the Is creator works in the Author role? #7156

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?

Responses to the discussion on Github


lauriejim136d ago

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.


abdonrd136d ago

Author

@lauriejim thanks Jim! But how Strapi knows if have been created by him?


lauriejim136d ago

Maintainer

A relation is automatically created (like the created_at and updated_at)
A field created_by exist


abdonrd136d ago

Author

And what about all the information that was created before v3.1.0?


lauriejim136d ago

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 :slight_smile:


alexandrebodin136d ago

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.


abdonrd136d ago

Author

Thanks both!


lauriejim135d ago

Maintainer

Thank you for the info @alexandrebodin