Gst-inspect-1.0 nvcodec does not work from user but it works from root

Hi there… I upgraded from Ubuntu 23 to 24 and my Gstreamer pipelines stopped working…
I discovered that the problem is that
“gst-inspect-1.0 nvcodec”
can’t find CUDA anymore.

If I run that command from a simple user I get an error that says that there is no CUDA, if I run the same command from root, I can see that CUDA is there…

How this is possible? how can I tell Linux that those libs should work on both root and simple user?

this is the output of the command from user:

and this is the output from root:
Screenshot from 2024-05-23 17-25-27

Any help will be really appreciated, thanks!