jDownloadsownloads.com

Advertisement
Advertisement:

Author Topic: "Add" button visual even though users have only download rights [solved]  (Read 2584 times)

0 Members and 1 Guest are viewing this topic.

Offline IozzoI

  • Newbie
  • *
  • Posts: 9
Hi Arno,

The "Add" button is visual even though the users do not have permission to use it. Would it be possible to make it dependent on the users permissions to create?

Regards,
IozzoI
« Last Edit: 07.12.2016 12:22:25 by ColinM »

Offline Arno

  • Administrator
  • ***
  • Posts: 12.110
    • jDownloads.com
Hi,
i am not sure that we can do this, since it can be that a user has not a global creation permissions but only for some categories. So it is not easy to check this in all cases.  ::)
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline ColinM

  • Moderator
  • *
  • Posts: 3.152
Arno
I think that the Add button should be treated the same as the Create Menu item, after all a button is just the same as a menu item in its effect.  That is it does not depend on upload permissions but on View Access.  That would be totally consistent.    This is the same as different categories being shown dependant upon View Access.

It is simpler of course in the menu item, and in categories, as the View Access Level is set explicitly.  Maybe use could be made of the User Group Rankings to determine the applicable User-Group and see if that user group has View Access.  Perhaps another way is that the Configuration (front end tab?) specifies the View Access Level for the Add button.  This I think would be a practical scheme as one has to specify View Access everywhere else.

It is then entirely reasonable to expect that if the admin person has given View Access to the button for some user groups then they should also have given create rights to those user groups in the view access.  This is exactly how one controls the Create menu item.  As ever documentation can be supplied. ;D

Colin

Offline kavitaxx2016

  • Newbie
  • *
  • Posts: 2
    • printable calendar 2017
great. I was lookoing for this because one of my friend was looking for it.

Offline ColinM

  • Moderator
  • *
  • Posts: 3.152
Hi
Yes this has been resolved. The Add button only appears when the user group has the relevant create and edit permissions. 
Further for UGs with those permissions then admin may decide to show/not show the button in Users Groups - Group Creation/Editing Settings tab to disable for a user group in the 'Display add/upload icon' field.  The default is to show the button if the permissions allow.

Colin

 

Advertisement