Determining user access level.
Hi guys,
Really enjoying looking at the great work in this forum.
I'm writing a simple "links of interest" panel where if the current user is an admin the view will enable a simple CRUD interface for links.
I need to be able to determine the userID in order to query whether or not a user is an admin. The structure below would suggest that I cannot access the userID.
Whats the methodology for this? I know this is probably a noobie question.
V.
Really enjoying looking at the great work in this forum.
I'm writing a simple "links of interest" panel where if the current user is an admin the view will enable a simple CRUD interface for links.
I need to be able to determine the userID in order to query whether or not a user is an admin. The structure below would suggest that I cannot access the userID.
Whats the methodology for this? I know this is probably a noobie question.
V.
[Database] => Gdn_Database Object
(
[ClassName] => Gdn_Database
[_CurrentResultSet:Gdn_Database:private] => Gdn_DataSet Object
(
[Connection] => PDO Object
(
)
[_Cursor:Gdn_DataSet:private] => -1
[_DatasetType:protected] => object
[_EOF:protected] =>
[_PDOStatement:Gdn_DataSet:private] =>
[_Result:protected] => Array
(
[0] => stdClass Object
(
[UserID] => 1
0
Comments
Being an instance of gdn, that gives me access to the Session/User attribute. I should of PHPdoc'd this before asking stupid questions.
Sorry guys