×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
non users viewing other users entries in list
Brian Sooy
New Member
Posts: 2
10 år 1 måned dager siden #395
av Brian Sooy
non users viewing other users entries in list opprettet av 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
Thanks,
Matt
Vennligst Logg inn eller Registrer konto for å bli med i samtalen.
Brian Sooy
New Member
Posts: 2
10 år 1 måned dager siden - 10 år 1 måned dager siden #403
av Brian Sooy
Besvart av Brian Sooy i emne 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.
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: 10 år 1 måned dager siden by Brian Sooy.
Vennligst Logg inn eller Registrer konto for å bli med i samtalen.
Tid til å lage siden: 0.059 sekunder