Open R-J opened 6 years ago
The permission documentation shows following code Gdn::Session()->Permission('Permission.Name'); but there is no method permission() in class Session
Gdn::Session()->Permission('Permission.Name');
permission()
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").
Gdn_Controller
$this->permission("Some.Permission")
The permission documentation shows following code
Gdn::Session()->Permission('Permission.Name');
but there is no methodpermission()
in class Session