I have a need to not only restrict access to some download categories to certain groups, but to disallow those categories to be viewed by anybody else. Currently, even if you disable a category, it's still visible.
My thought was to duplicate the Downloads module (call it Staff_Downloads),
create a new set of nsngd tables (*_staff_nsngd_*), create a staff_nsngd_func.php file, and away I go.
Downloads module works as expected, I just enable that module for the staff group, and nobody else can then see it. My problem is that the second admin menu I get for Staff Downloads operates against the original tables.
I've made some edits on $module_name="Staff_Downloads" but it seems that any php?op= (such as DLMain) works against the original tables. (even though I have all the table edits done in the code, and module name is correct, and the paths are correct...etc.
I'm not sure I understand the admin.php?op=DLMain enough to trouble shoot this. What have I missed in order for the admin menu downloads to work against the new staff_nsngd tables?
Joined: Aug 29, 2004 Posts: 9136 Location: Arizona
Posted:
Tue Aug 19, 2008 6:41 am
kdunbar, unfortunately, when there is an admin module, you must also change all the op codes for the second copy. See your Staff_Downloads/admin/case.php file for what I mean. You have to change them in that file as well as in the admin/index.php which passes those op codes in the form actions and URLs.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum