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

Permission Question #182

Open
itdap opened this issue Jan 28, 2014 · 3 comments
Open

Permission Question #182

itdap opened this issue Jan 28, 2014 · 3 comments

Comments

@itdap
Copy link

itdap commented Jan 28, 2014

I have installed the role module but I would like to know if there is any default permission on the code or I need to start adding the user->can by myself around all modules . I can see on the table permisions that the demo account have permissions to read and write messages but i think is not working.
Where is the best way to add the user-can? i saw some examples that they put it on the controller in the access control section as expression.

Thanks in advance.

@thyseus
Copy link
Owner

thyseus commented Feb 4, 2014

I do not really understand your question. The role submodule is documented in the docs/permission_system.txt file. Of course this file should be extended since it is a stub. How far did your investigations went?

@itdap
Copy link
Author

itdap commented Feb 9, 2014

Yes I read the file but I would like to know if in your other modules, like avatar, profile, etc you already have set the permissions using the user->can ? or I need to add it in the modules that I want.
thanks

@thyseus
Copy link
Owner

thyseus commented Feb 9, 2014

Yii::app()->user->can() is available everywhere, since its in the
YumWebUser component.

2014-02-09 2:47 GMT+01:00 Diego [email protected]:

Yes I read the file but I would like to know if in your other modules,
like avatar, profile, etc you already have set the permissions using the
user->can ? or I need to add it in the modules that I want.
thanks


Reply to this email directly or view it on GitHubhttps://github.com//issues/182#issuecomment-34562788
.

GIT/GP/GTW d- D++ s a- C++ UL++ P-- E--- R !tv e-- h* r-- y-

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