[Explained] Custom Permission for Import | Authors | Files

More
11 years 11 months ago - 11 years 11 months ago #32263 by igcorreia
Hello, please consider adding a permission only for the Import feature. I will always disable this for a regular user.

I am been stupid or this cant be done?

I want to set custom permissions per group for:
Import
Authors
Files

all in the backend
Last edit: 11 years 11 months ago by igcorreia.

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #32268 by ggppdk
-- 1. About Authors the permission is same as the Joomla User manager permission, you think to add a custom one?

-- 2. About File Manager we already have 3 permissions: (a) File manager access, (b) upload new files, (c) list/view all files in file manager, so what do you mean?

-- 3. For (Content) Import it is same as "can submit/create content item (article) permission, you think to use a more specific one ? (for this i think we should, it is very easy and i will, see below)


It is very easy to add to J2.5 (for J1.5 is easy too since we add already added some custom for adding new ACL rules , but it requires a little more work)
So, i will add (for import) in next commits

-- To test this now in J2.5 (it is only 2 lines of code):

1. Edit flexi_backend_folder/access.xml and after :
<!-- VARIOUS management tabs -->
add:
Code:
<action name="flexicontent.manageimport" title="&lt;b&gt;Types: -- manage --&lt;/b&gt;" description="Allow users in the group to have access to the (Content) Import Management." />

2. edit flexi_frontend_folder/helpers/permission.php and replace:
// IMPORT: management tab
$permission->CanImport = $permission->CanAdd;

with
Code:
// IMPORT: management tab $permission->CanImport = $user->authorise('flexicontent.manageimport', 'com_flexicontent'); // (backend) Allow management of (Content) Import

3. Relogin to your site and click the post-install task asking you to update permissions

4. Edit the permission per user-group

I give you these so that in future you can use:
$user->authorise('flexicontent.mycustomrule', 'com_flexicontent');

To add your custom rules, and e.g. use them inside custom template or frontend view joomla override, unfortunately upgrading FLEXIcontent will overwrite access.xml


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #32269 by igcorreia
Sorry for the frustration.
Let me explain, what I had to do to get the permission working like I wanted.

1 - I want to hide everything in Joomla back-end for the users, I really mean as much as I can.

So I started by going to everything and hide/remove from the administrator until the only thing left was FC Component.

I want to give them access only to ITEMS and FILES.

So in the configuration this is what I have done, but still I have the FC Homepage where I don't want them to go.

So the only way to hide this was by install FC Quick Icons Module from another FC Forum Member. I had to create a new Joomla Access Rule and disbale the Admin menu and Admin Submenu from this user.

So my client can only go to FC via Quick Icons and that is all they see.

----

Please consider this module as default.

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #32270 by ggppdk
Hello above i asked or explained current behavior e.g. users e.g. files,
we are positive into adding more acl
but please comment on my first sentences in previous post


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #32297 by igcorreia
About the Author permissions:
- After finish my first 2.5 set of permissions, this are my 2 feature request, for Author:
|_List Categories tree - Front End - TRUE or FALSE
|_Force edit menu item id - because if a category already exists in a menu item the EDIT FORM will be displayed in that category and not in the item submission form. What I mean is if I have a front end menu item with limit to 1 category for example "Add NEWS" when you edit an "Type of content: NEWS" it should be the same form (hope you get what I mean, is not easy).

About the files permissions:
- NOPE it looks awesome.
|_ feature request an front end files list :D

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #32298 by ggppdk

algardata wrote: About the Author permissions:
- After finish my first 2.5 set of permissions, this are my 2 feature request, for Author:
|_List Categories tree - Front End - TRUE or FALSE

i am not sure what you mean with this, you mean item form? to do what in item form?

algardata wrote: |_Force edit menu item id - because if a category already exists in a menu item the EDIT FORM will be displayed in that category and not in the item submission form...

The category override (=ignore ACL permissions and use menu item config) in menu item for new item submission was added for J1.5 with no FLEXIaccess (and for unlogged users), it was a very big pain to clean-up (and add security check to it ...)
It is meant for submit-operations only, please use ACL for edit-operations.

algardata wrote: About the files permissions:
- NOPE it looks awesome.
|_ feature request an front end files list

List? List by what criteria?
e.g.
-- List files assigned to an item via a menu item??

Recently enhanced the file field to display inaccessible (current user does not have view level required to view)
[attachment=0:3bttxkd2]<!-- ia0 -->file_field_inaccessible_files.PNG<!-- ia0 -->[/attachment:3bttxkd2]


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.553 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline