News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

Unable modify jdownlads' users group

Started by mrm92, 04.03.2016 12:27:17

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

mrm92

Hi,
I need to create some users that can upload, modify and delete file only in some selected categories. To do that I think I must do users group for each users, because each of these users have his "personal" area to modify (every other user can see and modify these files).
I create the user, I put it in a new user group that I have created for it, go to jdownloads users group, I need to modify the group that I have created because I need auto publish and edit the upload form.
But when I save I only see on the top the box of the error WITHOUT any type of error, so I don't know why I cannot save. The only thing that is strange, is that in this page the field Title group is empty and isn't impossibile to add (must be the same of the name group).

Hope that someone can help me.
  •  

ColinM

Hi
When you are looking at User Groups Settings I presume that you are logged in as Super User.
After you have created a new Joomla! User Group (UG) then if you go to jD User Groups Settings does that UG appear in the list of UGs?

Are you using Caching as the cache may not have updated.

Have you tried editing one of the existing UG in the UG Settings page?
When you create a new UG for specific use with jD I would suggest you use Registered as the parent.

Colin
Colin M
  •  

mrm92

#2
Hi Colin,
yes I logged in as Super User.
After I have created UG it appear in the list of jD UG.
When I tried edit it in jD UG I simply can edit it, but I cannot save.
I solved it by adding manally a new line in _jdownloads_usergroups_limits with same ID of Joomla UG that I've created, then if I go in jD UG I can edit and save it.

The only problem that I've found after is that I can limit the upload area in front end of that UG, but seems there's no way to limit the edit categories area in back end, so the result was: I limit the upload to one categories and her subcategories, but in back end can edit every categories.
I want to limit the edit categories in back end area as the same in front end. There's a way to do that?
  •  

ColinM

Hi
I am surprised you needed to manually add an entry into the  _jdownloads_usergroups_limits table in your database.  That should not be necessary so something is not quite right.  Will need to refer that to Arno.

Usually it is only the Front End that one restricts.  Obviously if you give another user Super Admin Access then they can do anything.  The challenge here is that if you allocate someone to Manager, Administrator, Author, Editor or Publisher then they will have some level of Edit, Edit Own, Create and Delete permissions.  The two key UGs are Manager and Author.  Also this is one of those very, very rare conditions where we need to use the Deny permission on the Categories.  So for instance if we choose a a top level category and set the Author permissions to Deny for Create, Delete, Edit etc then anyuser in UGs author, Editor and Publisher will not be able to do anything with that Category and its sub cats and their Downloads.   You then create another UG with Registered as its Parent and give that UG the relevant permissions.  So a particular member could belong to two UGs, one which allowed working on Articles and so on whilst the other UG membership allows working on jD things.
There are however no equivalent User Groups Settings for the Back End so you might need a UG specific to each top level jD category.
Also of course you have to ensure that Back End users cannot change permissions, create new users etc etc
It gets increasingly complex and fraught with 'challenges'.

Personally I would just put the Deny permissions in place and tell the users concerned that they have to work from the Front End for JD things.  In my view Backend Users are meant to be trusted!!

Colin



Colin M
  •  

mrm92

Quote from: ColinM on 07.03.2016 10:15:39Personally I would just put the Deny permissions in place and tell the users concerned that they have to work from the Front End for JD things

That's what I do but, some i'd like some users can create and modify his categories where they can upload files.. but if not, can be a feature in a future release, or maybe users that can create/modify categories in front end.

Thanks
  •  

Arno

QuoteI am surprised you needed to manually add an entry into the  _jdownloads_usergroups_limits table in your database.  That should not be necessary so something is not quite right.  Will need to refer that to Arno.
I have it tested here but could not confirm this really.

But i have another user where every new created user group has lost here name in the jD edit form. Then it is not possible to save changed fields. Could be here the same reason?

I will check in the next step the users jD DB tables but must wait for the login data.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •