Message Boards

Unable to open an asset through search with a non admin user logged in

António Gonçalves, modified 2 Years ago.

Unable to open an asset through search with a non admin user logged in

New Member Posts: 2 Join Date: 7/5/21 Recent Posts

Hi, I am developing a liferay plugin where the following points are required

  • Support a specific data model (to display data from our web application)
  • Support permissions
  • The data being available on liferay through assets
  • Work with liferay search (searchable assets)

Everything is working fine except for one thing,

If I am logged out or logged in with a non-admin user, I am able to search for an asset, see the asset listed on the search results, but when I click on the asset I go to a blank page.

However even If I am logged out or logged in with a non-admin user I can open the asset page through the listing provided through the assetpublisher, this issue seems only to be present through the search results.

I have followed this guide first in order to gain some basic knowledge about the development of a liferay plugin

https://help.liferay.com/hc/en-us/articles/360018157411-Writing-Your-First-Liferay-DXP-Application

Thanks in advance for any help I can get to solve this issue

 

 

thumbnail
Nikhil Nishchal, modified 2 Years ago.

RE: Unable to open an asset through search with a non admin user logged in

Regular Member Posts: 177 Join Date: 6/22/12 Recent Posts

Hi Antonio,
could you please check the url generation in both case logged in and logout.
Also you can reindex and check the permission on the content and page on which details shown.

Thanks!

thumbnail
Russell Bohl, modified 2 Years ago.

RE: Unable to open an asset through search with a non admin user logged in

Expert Posts: 291 Join Date: 2/13/13 Recent Posts

Hi Antonio, your post is tagged with 7.1 search customization and 7.3.5 ga6, and you've linked to 7.0 documentation. I don't know if I can help, but it might help get you a better answer if you specifiy which version you'd like to know about.