cybercog/laravel-ownership

OwnedByDefaultUser

blendsoft opened this issue · 3 comments

Could you add method for checking if model if owned by currently authorized user ?

This feature will be available in v4:

$comment->isOwnedByDefaultOwner();

Not using word User in method name because resolve logic could be overwritten in application and it will return custom type of owner model.

Will be published with PR #14

Released in v4.0. Upgrade to it will require to update classes and contracts namespaces.