| Author |
Message |
Chief

Joined: Mar 15, 2005
Posts: 10
|
Posted:
Tue Mar 22, 2005 4:52 pm |
|
Hi Again ... I try to give access to a new admin to this modules only ... its work great if the user have Superadmin right but if I give him access to Maps section only I have this error
ERROR:
You do not have administration permission for module "Maps"
I have added admin fonction in the database, admin.php and author.php I have sql request to access to the admin fonction.
After my modification when I log with this user I have the Maps Icon but I have this error when I try to enter in the map admin fonction.
You have step by step the modification to integrate your module in nuke 7.0 ?
I miss something.. |
_________________ www.jtf-2.com |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue Mar 22, 2005 7:46 pm |
|
if your trying to do what i think, this might be the solution.
assuming your using map manager 1.0 uni and nuke 7.0
Find
| Code: |
$result = $db->sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'"); |
Change to
| Code: |
$result = $db->sql_query("select radminmaps, radminsuper from ".$prefix."_authors where aid='$aid'"); |
find
| Code: |
list($radminsuper) = $db->sql_fetchrow($result); |
Change to
| Code: |
list($radminmaps, $radminsuper) = $db->sql_fetchrow($result); |
Find
| Code: |
if ($radminsuper==1) { |
Change to
| Code: |
if (($radminmaps) OR ($radminsuper==1)) { |
|
| |
|
|
 |
Chief

Joined: Mar 15, 2005
Posts: 10
|
Posted:
Tue Mar 22, 2005 8:12 pm |
|
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue Mar 22, 2005 8:50 pm |
|
Maybe you could post the other steps you took to make this work so other users can enjoy it. |
| |
|
|
 |
Chief

Joined: Mar 15, 2005
Posts: 10
|
Posted:
Tue Mar 22, 2005 9:27 pm |
|
I will try to write it for myself ... I have cut / paste a lots lol this afternoon.
I will make that again with another modules to see the right method and i will post here the result.
When I try much longer I cant remember all what I have done.
But thx for the fine tuning. |
_________________ www.jtf-2.com |
|
|
 |
|
|