All questions about EDocman extension

EDocman new document access always defaults to Public, how to change it?

  • Kreshna Aryaguna
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 5 months ago #152456 by Kreshna Aryaguna
When we create a new Edocman document, the document access always default to "Public", as shown on the picture below.



Is there any way to change the default access to "Registered" instead of "Public"? Perhaps we need to edit some PHP file or something?

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

More
2 years 5 months ago #152466 by Mr. Dam
Hi,
You can follow below steps to init the Registered for field Access
1. Open file:
[root] -> administrator -> components -> com_edocman -> model -> document.php
2. Find:
Code:
public function initData()     {         $this->data = $this->getTable();         $this->data->license_id = EdocmanHelper::getDefaultLicense();     }
and change to
Code:
public function initData()     {         $this->data = $this->getTable();         $this->data->license_id = EdocmanHelper::getDefaultLicense();         $this->data->access = 2 ;     }

Thanks
Dam
The following user(s) said Thank You: Kreshna Aryaguna

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

  • Kreshna Aryaguna
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 5 months ago #152485 by Kreshna Aryaguna
Thank you, it works!

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

More
2 years 5 months ago #152486 by Mr. Dam
You're welcome Kreshna,
Thanks
Dam

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

Moderators: Mr. Dam