TWLan Forum
Can't access admin panel - Printable Version

+- TWLan Forum (https://twlan.org)
+-- Forum: English (https://twlan.org/forumdisplay.php?fid=53)
+--- Forum: Questions & Problems (https://twlan.org/forumdisplay.php?fid=69)
+--- Thread: Can't access admin panel (/showthread.php?tid=43410)



Can't access admin panel - dragonforce350 - 19.03.2016

Can't access admin panel. Whenever i add the /admin/ to the url it gives me "INSUFFICIENT PERMISSIONS!" Even though i'm the only person who registered. Any ideas? Was a fresh install and immediate register into the game, then i tried to access the panel.


RE: Can't access admin panel - Molt - 19.03.2016

Admin privileges are granted only to users who register via 127.0.0.1 or localhost.
If you use any other IP (like 192.168.1.20 for example), you will not receive admin privileges.

You can manually fix this by opening Adminer (/adminer.php) and in the "users" table, set "is_admin" to "1" in the desired row.


RE: Can't access admin panel - dragonforce350 - 19.03.2016

(19.03.2016, 00:08)Molt Wrote: Admin privileges are granted only to users who register via 127.0.0.1 or localhost.
If you use any other IP (like 192.168.1.20 for example), you will not receive admin privileges.

You can manually fix this by opening Adminer (/adminer.php) and in the "users" table, set "is_admin" to "1" in the desired row.

Much appreciated! should have read the installation to detail... especially because i'm not new to tw lan Wink

Thanks!


RE: Can't access admin panel - Pariah - 27.03.2016

I am having the same issue. The account signed in through the 127 ip is not able to access the admin control panel.


Also, I cannot find the "users" table in adminer.php


RE: Can't access admin panel - Molt - 27.03.2016

(27.03.2016, 01:11)Pariah Wrote: Also, I cannot find the "users" table in adminer.php

That sounds broken... and all the other tables are there?


RE: Can't access admin panel - Pariah - 27.03.2016

(27.03.2016, 01:53)Molt Wrote:
(27.03.2016, 01:11)Pariah Wrote: Also, I cannot find the "users" table in adminer.php

That sounds broken... and all the other tables are there?

I'm not entirely sure.   I don't knwo what was supposed to be there, but others are there.

Exception: Insufficient permissions!
Location Call
internal TWLan\Controllers\Admin->init
internal TWLan\Framework\Router::call
internal TWLan\Framework\Router::run
C:\Users\Andrew\Downloads\TWLan-win32\htdocs\index.php:3 TWLan\TWLan::run


RE: Can't access admin panel - Pariah - 27.03.2016

Ok, so I'm not sure what caused the issue....however, I wiped the files from my PC and redownloaded. It works fine now.

When you said it sounds broken, I figured that would be a good place to start Smile

Thank you Molt!