All questions about EDocman extension

How to disable Front End Editing

  • Peter Rossetti
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #101488 by Peter Rossetti
How to disable Front End Editing was created by Peter Rossetti
Is it possible to disable front end editing for EDocman.
Can this be done as a template override.
Editing views - document - default.php file
line 21 change
$canEdit = $user->authorise('core.edit', com_edocman.document.'.$item->id);
to
$canEdit = FALSE;

This worked for com_content

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

More
7 years 8 months ago #101530 by Mr. Dam
Replied by Mr. Dam on topic How to disable Front End Editing
Hi Peter,
Why do you need to modify code when in Edocman ACL, you can deny permission: Edit and Edit Own. By that way, user won't able to edit documents at front-end. See more here: edocmandocs.ext4joomla.com/getting-started/edocman_acl
Thanks
Dam

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

  • Peter Rossetti
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #101538 by Peter Rossetti
Replied by Peter Rossetti on topic How to disable Front End Editing
Oh OK - will this just disable front-end editing for people with permission to edit it from the back end.

I tried just edit and edit own and the UPLOAD button was still there there so denied create, delete and edit state, then it disappeared, but then the administrator cannot edit in the back-end either.
Is there a way to disable just the front end but leave the ability only in the back-end

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

More
7 years 8 months ago #101539 by Mr. Dam
Replied by Mr. Dam on topic How to disable Front End Editing
Hi,
If you disable permission: Create for front-end user groups. An normal registered user won't able to upload their documents from front-end
Thanks
Dam

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

  • Peter Rossetti
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #101540 by Peter Rossetti
Replied by Peter Rossetti on topic How to disable Front End Editing
Yea got that - but what I want is to disable all front end editing - so say an admin can edit back end but not edit front end. Doesn't seem possible without a template override?

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

Moderators: Mr. Dam