Forums

Restrict Binary to Admin

JeLu 08 Nov, 2012
I want to show my users the result of a "Binary Field" but I do not want them to be able to change it themselves. If they don´t have any update access, this works but if I want them to have the option to edit all other fields they also can change the binary filed.

Is there a way I can restrict just that function (Binary Field)?

This apply to ChronoConnectivity 4.0 RC3.2

Edit:

I use:

Joomla 2.5.7
CF 4.0 RC3.5.1
CC 4.0 RC3.2

//JeLu
Max_admin 08 Nov, 2012
Hi Jelu,

Unfortunately this may not be possible, the binary permissions are the same as the update permissions, since you do a record update.

But you can use the data row event to disable the link click or make it a plain image if the logged in user is not an admin.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
JeLu 09 Nov, 2012
Hi Max!

Do you mean that I would use a custom listing setting. In that case, can I use the user-group restriction?

Ok I test and see what happens.

//JeLu
Max_admin 11 Nov, 2012
Hi Jelu,

I mean to use the "Auto list event" field to control the row output using a custom code action, e.g:


<?php
if(group == admin) //use real code instead
$form->data['row']['field'] = 'content here';
?>


Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
JeLu 12 Nov, 2012
Should try this, and see if I can get it to work.

//JeLu
This topic is locked and no more replies can be posted.