Clarification, if user 1 were an admin user, an inferred user can also delete notifications
It sounds like you assigned the same notification instance to both users. What you probably want to do is have a separate notification instance per user, so when delete it, they only delete their own one.
Sure, I understand, but then, if I want to assign 1 notification that I created as a user to 200 users and that they can also manage theirs, if they delete the one that I created, they delete it to all the users that I attributed the notification to, and The question went a little further, because that does not happen with, for example, computed attributes.
Same thing will happen with computed attributes. If you share some object with a user and they delete it, it's deleted for everyone.
That behavior is wrong...
A non privileged user should only be able to delete HIS instance of whatever resource.
Or in any case, disable it for himself.
This behavior then, is what I'm having with notifications, whenever a user makes changes, every other user sees it..
And you always blamed me for doing something wrong, when IS TRACCAR DEFAULT BEHAVIOR... AND IS WRONG!
COME ON!
Hello, how are you, conceptual question, doing a test with permissions in notifications, I created a user1 who is not an administrator, but has the possibility of creating other users and other functions, I created a user2, and assigned him a notification that I created with user1 Let's just say he can see his notifications, but here, my conceptual question, user 2 can delete the notification that was assigned to him, so far so good, but he also deletes the notification for user1 Whoever created it, I understood that from the test I did, there is something I did wrong that allowed me to do that, because for example if I do the same with a calculated attribute, it doesn't let me eliminate it with user 2, telling me that I don't have permissions, why then yes for notification and not for example computed attributes.
I appreciate if someone can explain a little more, thank you