Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Permission Documentation References Wrong Method #261

Open
R-J opened this issue Apr 4, 2018 · 1 comment
Open

Permission Documentation References Wrong Method #261

R-J opened this issue Apr 4, 2018 · 1 comment

Comments

@R-J
Copy link
Contributor

R-J commented Apr 4, 2018

The permission documentation shows following code Gdn::Session()->Permission('Permission.Name'); but there is no method permission() in class Session

@charrondev
Copy link
Contributor

The method that should be referenced there actually lives on Gdn_Controller, and is normally called from within the controller as $this->permission("Some.Permission").

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

No branches or pull requests

2 participants