[sentry] Only show edit icon when admin or with grant option

Also fix the tests
[sentry] List privileges of the server

Double load them at page load though