I have migrated a solution from 3.5 to 5.2 recently, and now none of my previously hidden elements (mostly buttons) are showing when they are designated not visible in security (the tickbox is NOT ticked for viewable).
I have 16 security groups. One button on a navigator, and two buttons on a regular form show for all users even though they are supposed to be only visible to the Administrators group, i.e. I have deselected the tick in the viewable tickbox for every group other than Administrators for that named element. See attached screenshot of one example group. The only group that DOES have viewable ticked is Administrators, yet the button is permanently visible…
Odd thing is that if I make it visible but not accessible for one of the groups, it becomes non accessible for ALL groups - including Administrators.
I have tried deleting and re-adding the button, as well as naming it differently.
There are no regular users in the Administrators group and all them are assigned to at least one or two of the other non Administrator groups.
I am using Mac / Java 1.6 / Servoy 5.2 / Sybase 11.
Has something else changed with 5.2 that I don’t know about with regard to making elements invisible? Is this a bug?
After exhaustively removing warnings (you can only see 100 at a time), I have got down to below 100 and have found that there is no issue shown for that element, or form.
I set the property to not viewable for a particular group, log in as someone in that group, and the button is there… This happens with several buttons.
can you just place a button in the form where you
have a field set to non-viewable, and on click just do:
application.output(security.getUserName());
application.output(security.getUserGroups());
application.output(security.getElementUUIDs(‘your_form_name’));
, so we first check who is logged in and what elements do we have, and then attach here the output, along with the
form security file, the file with the same name as the form, but with “sec” as extension, so we can see what are the security settings on the form’s elements
are you sure you don’t make those elements visible from code ?
can you create a new dummy form, and put there an element without “viewable” right, and
test if it shows up ?
if you still see the issue, the best would be if you create a case in our support system, and
upload your solution, so we can debug it, as with a simple test solution everything works as expected