Any questions about Documents Sellers, post it here .

Inability of public to view Document Category

  • Herman
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 6 months ago - 12 years 6 months ago #15777 by Herman
Public are asked to register just to view category document. I have checked and it is not a permission issue. I discovered that it is not only for categories but also for documents view

Attachment Issues_with_documents_and_category_and_categoriew_view.jpg not found

Attachments:
Last edit: 12 years 6 months ago by Herman. Reason: review and add issues

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

More
12 years 6 months ago #15788 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Inability of public to view Document Category
Hi

I checked the code in the component and found that you or your developer customized it and added the code which require users to login before purchasing.

Please open the file components/com_dms/controller.php, find the code below and remove it. After that, it will work as expected .
Code:
$user =& JFactory::getUser(); if ($user->guest) { $msg = "Please login"; $rurl = base64_encode($_SERVER['REQUEST_URI']); $url = JRoute::_('index.php?option=com_users&view=login&return='.$rurl); $mainframe->redirect($url, $msg); }

Regards,

Tuan

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