× 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
1 month 3 weeks 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
1 month 3 weeks 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:
public function initData()
    {
        $this->data = $this->getTable();
        $this->data->license_id = EdocmanHelper::getDefaultLicense();
    }
and change to
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
1 month 2 weeks ago #152485 by Kreshna Aryaguna
Thank you, it works!

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

More
1 month 2 weeks 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