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

can not send parameter in script #19

Open
morteza-mortezai opened this issue Jun 21, 2023 · 1 comment
Open

can not send parameter in script #19

morteza-mortezai opened this issue Jun 21, 2023 · 1 comment

Comments

@morteza-mortezai
Copy link

morteza-mortezai commented Jun 21, 2023

Hi

I am using with Vuejs3 setup

when I wanna use like this in component

acl.permission('update-post',post_id)

it doesn't work properly

acl.js

setRule('update-post', (user,post_id) =>{ console.log('post_id',post_id); return true })

and in console I get :

post_id undedfined

@doornema
Copy link

hello
use this style
acl.can("update-post", [post_id]))
or
acl.permission("update-post", [post_id]))
its worked for me

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

2 participants