Why after saving an admin enty its admin_level sets to '0'?
i do not see admin_level submitted by the form (it is kind of commented out)
thanks
Calixto
Why after saving an admin enty its admin_level sets to '0'?
i do not see admin_level submitted by the form (it is kind of commented out)
thanks
Calixto
That's because the admin-demo feature is presently disabled in the software.
In a future version there will be full admin security, allowing different permissions for different users. Until then, the demo option is disabled.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
I must be missing something very obvious, so I apologize.
Admin level = 0 stands for the no used Demo user.
My point is that while going into editing the admin list, and saving the result, zencart sets the admin_level to zero, which should not be done.
My poor PHP knowledge indicates that admin_level is not submited to the reloaded page, so the 'case save: option', having not received admin_level via POST, sets it to zero
look,
$admin_level = zen_db_prepare_input($_POST['admin_level']);
I added this line to force one
$admin_level = 1;
check edit_admin form code. In 1.3.8 admin_level is not posted
The admin_level field is not used in v1.3.8. Thus whether the value in the database for each user's admin_level is set to a 0 or a 1 doesn't make any difference.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
thank you
Bookmarks