× Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues

non users viewing other users entries in list

9 năm 11 tháng trước #395 bởi Brian Sooy
I have a component which captures the user id for entries.  The user must login before they can create an entry.  The problem is that when they go to the list view, everyone's entries show.  Only the users can edit their own entries.  But I can not have everyone looking at everyone else's entries.  Is this a bug?

Thanks,

Matt

Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.

9 năm 11 tháng trước - 9 năm 11 tháng trước #403 bởi Brian Sooy
Replied by Brian Sooy on topic non users viewing other users entries in list
OK.  I'm an Idiot.  Some times staring at code causes you to forget what you did a year ago.   I had created a component before wwhich had this functionality.  I forgot that i had re-written the query in the models/YOURAPPapps.php   in the   protected function getListQuery {     

If you use get user and assign the id to $userId   you can add a query where to that function and only the logged in user can view their own entries.  


I was able to locate my old component and completely forgot that I did that.   


No Bug....   Sorry.
Last edit: 9 năm 11 tháng trước by Brian Sooy.

Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.

Thời gian tải trang: 0.108 giây
Powered by Kunena Forum

We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.