Closed dinosaw closed 9 years ago
https://www.url.com/admin
does work if you have admin permissions and 404's if you don't.
You were on the right track by changing the admin
value from 0
to 1
. All you need to do is log out and back in after doing that, as the permission is stored in the php session.
You can see this happening in: https://github.com/Clidus/gwl/blob/master/ignition_application/models/ignition/user.php
// create session
$newdata = array(
'UserID' => $user->UserID,
'Username' => $user->Username,
'Admin' => $user->Admin,
'DateTimeFormat' => $user->DateTimeFormat,
'ProfileImage' => $user->ProfileImage == null ? $this->config->item('default_profile_image') : $user->ProfileImage
);
$this->session->set_userdata($newdata);
Once you log back in, you should see an admin link in the navigation.
Oh geez. My problem was I hadn't signed in and out. Thank you for the clarification! :)
No problem!
I did not see this explained in the documentation, but how exactly do I create an admin account? I attempted to go to
www.url.com/admin
but got a 404. I also changed theadmin
value in the MySQL database from0
to1
but that did not seem to work either.