Zen Cart Logo
Forums / All Other Contributions/Addons / Admin Profiles (for v1.3.x only!) Support Thread

Admin Profiles (for v1.3.x only!) Support Thread

Views: 334,212

Results 541 to 560 of 1,242
4 Aug 2008, 5:19 PM
#541
anafor avatar

anafor

New Zenner

Join Date:
Jul 2008
Location:
Ukraine, CK
Posts:
28
Plugin Contributions:
2

Admin Profiles (for v1.3.x only!) Support Thread

Hello
I decided to append the ability of choosing allowed product Categories. My aim is to create the restriction for admin, so he could see, manage and easyly add products and categories only in his own category, like moderators on forums. If anybody is being interested in such contribution, I will gladly post it to site when finish.

I added table "admin_allowed_categories" with columns "categories_id" & "admin_id" to the database and added similar with the native ones functions check_category and category_allowed. I also added row Categories with id 21 to "admin_menu_headers" table.

The first thing i've done was disabling disallowed Categories to show in Categories listing in Admin. That was done by verifing category id in the loop if it was allowed for current admin.

The question is: Am I on the right way, and how it could be done easier? Because there are many "selects" of products and categories in the admin files.

4 Aug 2008, 7:31 PM
#542
andyii avatar

andyii

Zen Follower

Join Date:
Mar 2007
Posts:
153
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

anafor
this is what I had coded, I needed to be able to restrict any admin to a manufacture and their associated categories.
took some time and money but it does work perfectly so far

4 Aug 2008, 8:28 PM
#543
anafor avatar

anafor

New Zenner

Join Date:
Jul 2008
Location:
Ukraine, CK
Posts:
28
Plugin Contributions:
2

Re: Admin Profiles (for v1.3.x only!) Support Thread

AndyII, thank you for the reply.
Could you post it?
Or, at least give me some good advice how to do it myself?
I would be very appreciate to you.:smile:

6 Aug 2008, 4:29 AM
#544
anafor avatar

anafor

New Zenner

Join Date:
Jul 2008
Location:
Ukraine, CK
Posts:
28
Plugin Contributions:
2

Re: Admin Profiles (for v1.3.x only!) Support Thread

Hello
I just want to announce, that i've finished coding the ability to add permissions for categories. It seems to work fine. If you are interested in it, I think you can get it soon throught download section. If not - mail me.)

6 Aug 2008, 4:43 AM
#545
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Admin Profiles (for v1.3.x only!) Support Thread

anafor,

Thanks for sharing this as there is a select group of Zenners that have been wanting for something like this

6 Aug 2008, 4:54 AM
#546
orbwebs avatar

orbwebs

New Zenner

Join Date:
Aug 2008
Posts:
5
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

Does this still exist.

6 Aug 2008, 12:49 PM
#547
anafor avatar

anafor

New Zenner

Join Date:
Jul 2008
Location:
Ukraine, CK
Posts:
28
Plugin Contributions:
2

Re: Admin Profiles (for v1.3.x only!) Support Thread

I'm glad of making some contribution to the community:smile:

6 Aug 2008, 6:02 PM
#549
anafor avatar

anafor

New Zenner

Join Date:
Jul 2008
Location:
Ukraine, CK
Posts:
28
Plugin Contributions:
2

Re: Admin Profiles (for v1.3.x only!) Support Thread

The contribution has to be checked by administrator first. It is being done twice a week, as ZenCart team tells.
I'd better post it here too.
NOTE: This archive differs from that I've posted to the download section. This one has not critical bug fix.

7 Aug 2008, 12:14 AM
#550
andyii avatar

andyii

Zen Follower

Join Date:
Mar 2007
Posts:
153
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

:huh:

#
# Create table structure for table `admin_allowed_categories`
#

DROP TABLE IF EXISTS `admin_allowed_categories`;
CREATE TABLE `admin_allowed_pages` (
  `categories_id` int(11) NOT NULL default '0',
  `admin_id` int(11) NOT NULL default '0'
) TYPE=MyISAM;
9 Aug 2008, 6:12 PM
#551
anafor avatar

anafor

New Zenner

Join Date:
Jul 2008
Location:
Ukraine, CK
Posts:
28
Plugin Contributions:
2

Re: Admin Profiles (for v1.3.x only!) Support Thread

Today I've seen my post to download section:

  1. It' s not a standalone version - I've just made some improvements of kuroi's version 1.0.7.
  2. About the issue, that logged in Admin can see denied category by entering it's number to the browser's command line: admin\includes\init_includes\overrides\init_admin_auth.php fixes it.
9 Aug 2008, 7:44 PM
#552
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

I'd never want to discourage people from contributing to the Zen Cart community. Giving back in this way is admirable and I hope that you won't be discouraged. However, I have to disagree with both your statements above> anafor:

  1. It' s not a standalone version - I've just made some improvements of kuroi's version 1.0.7.I don't see this as an improvement. Admin Profiles is very secure. Your extension to it is full of holes. This is most likely why the Zen Cart team have chosen to treat it as a separate mod. I'd recommend starting a separate support thread so that they can be dealt with without confusing support for the main mod.
    anafor:

  2. About the issue, that logged in Admin can see denied category by entering it's number to the browser's command line: admin\includes\init_includes\overrides\init_admin_auth.php fixes it.Unfortunately that only closes one route to access products outside of an admin's allowed categories. They can still access ANY product through other routes (I don't really want to discuss how on a public forum) and get at many products by simply using other Admin facilities.

What you set out to do can be done. Earlier in this thread I listed all the files that needed to be changed to do it securely. But it's a lot of files and and it would mean that the resulting mod would clash with many others. In addition, the number of intrusions into core code would also make this very difficult and expensive to maintain.

I can see from what you did that your technical skills are sufficient to do this. You just need to give more thought to all the ways of accessing and editing products. However, unusually, I wouldn't recommend releasing it for general use, unless you are prepared to dedicate significant amounts of time to supporting other community members trying to use it.

15 Aug 2008, 8:45 AM
#553
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

believe i have found a problem. i have 1.3.8 running with admin profiles / privliges. after installing image handler it over rides the admin profiles mod.

With admin profile i am ment to be able to deny other admins access to areas and hide the unused buttons. This was working correct. After installing image handler all the buttons now show but still when clicked get the no access warning.

This makes the admin section very cluttered and not how i want it.

20 Aug 2008, 3:33 PM
#554
giuly avatar

giuly

Zen Follower

Join Date:
May 2007
Location:
Italy
Posts:
438
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

I am trying to install this mod in ZC 1.3.8.a, but I have the message
your securiy clearance....
I read the install.txt and so I have yet installed news box before
I have tried to do the instructions, but It doesn't go.
Also because in the file dhtml of news box, the part
It compares not $options, but
$za contest
and I don't have foreach...... in the dhtml of news box.

Someone know how I have to do?
I have to install now image handler and O solve the problem modifying that file?

:frusty:


20 Aug 2008, 11:22 PM
#555
giuly avatar

giuly

Zen Follower

Join Date:
May 2007
Location:
Italy
Posts:
438
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

I have solved I didn't yet installed the step 3 of install.txt so now it's ok.
Last thing, if I don't create a menu admin box is it the same thing? Or is it necessary?

I see all from admin>tools>admin settings

Thanks
:D

21 Aug 2008, 1:47 AM
#556
tyroneyeh avatar

tyroneyeh

New Zenner

Join Date:
Aug 2008
Posts:
1
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

I could to request new function?

  1. copy new permissions to new admin user from already user
  2. no admin settings permissions, but can change self password

thanks! :smile:

29 Aug 2008, 9:56 PM
#557
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

Another idea, is to do a catch:
You have an init file catch the get string, then analyze it and refuses access if needed.

kuroi:

I'd never want to discourage people from contributing to the Zen Cart community. Giving back in this way is admirable and I hope that you won't be discouraged. However, I have to disagree with both your statements aboveI don't see this as an improvement. Admin Profiles is very secure. Your extension to it is full of holes. This is most likely why the Zen Cart team have chosen to treat it as a separate mod. I'd recommend starting a separate support thread so that they can be dealt with without confusing support for the main mod.
Unfortunately that only closes one route to access products outside of an admin's allowed categories. They can still access ANY product through other routes (I don't really want to discuss how on a public forum) and get at many products by simply using other Admin facilities.

What you set out to do can be done. Earlier in this thread I listed all the files that needed to be changed to do it securely. But it's a lot of files and and it would mean that the resulting mod would clash with many others. In addition, the number of intrusions into core code would also make this very difficult and expensive to maintain.

I can see from what you did that your technical skills are sufficient to do this. You just need to give more thought to all the ways of accessing and editing products. However, unusually, I wouldn't recommend releasing it for general use, unless you are prepared to dedicate significant amounts of time to supporting other community members trying to use it.

29 Aug 2008, 10:34 PM
#558
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

kitcorsa:

believe i have found a problem. i have 1.3.8 running with admin profiles / privliges. after installing image handler it over rides the admin profiles mod.

With admin profile i am ment to be able to deny other admins access to areas and hide the unused buttons. This was working correct. After installing image handler all the buttons now show but still when clicked get the no access warning.

This makes the admin section very cluttered and not how i want it.If when installing other mods you over-write the Admin Profiles files then it will stop working, partially or completely. Though I puzzled as to how you would do that when installing Image Handler as that mostly adds rather than replaces existing files. But I would look carefully at your box files, as these are the ones that would have the efect that you describe.

29 Aug 2008, 10:36 PM
#559
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

giuly:

I have solved I didn't yet installed the step 3 of install.txt so now it's ok.
Last thing, if I don't create a menu admin box is it the same thing? Or is it necessary?

I see all from admin>tools>admin settingsIf you don't adjust the box files as instructed users will still be restricted from visiting pages to which they are not supposed to have access, but they will see them in the menus as you will not have put in place the code to stop that.

29 Aug 2008, 10:41 PM
#560
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

yellow1912:

Another idea, is to do a catch:
You have an init file catch the get string, then analyze it and refuses access if needed.That can cover some of the restrictions needed, but to restrict access by category completely, it's still often necessary to turn off functions within specific pages, as the URLs available to the init file are often to general to enable them to be used as a filter.