Forums

Edit linkable for Super User

peter49 10 Oct, 2016
Hi,

In a connection table visible to all, I would like to allow line editing to Super Users only.
I defined a column as Edit Linkable and gave Edit permission to Super Users.
That works fine, but all users now see the existing Edit links. If they press them they get a message that No access is allowed.
Correct in itself, but rather unfriendly. Is it possible to show the edit links only to those that have edit permission?
A perfect solution would be one where the "world" would not have any clue of an edit link.

Regards,
Peter
GreyHead 11 Oct, 2016
Hi Peter,

IIRC there are two ways to do this. One is to use the Custom Display Type - you can then use PHP in the Header and Body codes to check the User status and exclude/include some columns.

The second and easier way is to use conditional CSS - you can add it in the Header Code box to hide the Edit links if the user is not an admin, you will have an empty column for ordinary viewers but if that is at the right it is not conspicuous,

Bob
peter49 11 Oct, 2016
Hi Bob, thanks again for your answer.
In this case a bit disappointing, I had hoped for a built-in answer. For the sake of simplicity I now consider to build two connections, one with and one without the edit option. Gives me also the option to show more to the Admin than to the world...

Best wishes
Peter
This topic is locked and no more replies can be posted.