Added user permissions check

Added isGranted to check if a user has the right permissions, otherwise hide the affected button.

e.g.: Check if user has list permissions, otherwise don't show update and return to list button
Merge pull request #2182 from NoScopie/patch-3

Added user permissions check