Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecureParam by relation #127

Open
dewos opened this issue May 3, 2013 · 1 comment
Open

SecureParam by relation #127

dewos opened this issue May 3, 2013 · 1 comment

Comments

@dewos
Copy link

dewos commented May 3, 2013

Hi. Is it possible to secure an object by his related entity? Like:

/**
* @SecureParam(name="comment.post", permissions="EDIT, DELETE")
*/
public function editPostByCommentMethod(Comment $comment)
{
        // Checks $comment->getPost() on {EDIT, DELETE} perms
}
@dewos
Copy link
Author

dewos commented May 7, 2013

Ok, find it. Great bundle, bad docs :)

/**
* @SecureParam(name="#comment.getPost()", permissions="EDIT, DELETE")
*/
public function editPostByCommentMethod(Comment $comment)
{

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant