permission is gone after defining widget function

Archived from the Xataface Users forum.

kevinwen — Thu May 13, 2010 5:44 pm

I had a fieldname_permissions() to return array(‘edit’=>0), and the html looks like this:

Health Care<input type=”hidden” name=”category_id” value=”2” id=”category_id” />

However, when I created the widget function block__fieldname_widget(), the permission is gone. and the html looks exaclty same as echoed from the widget function, instead of pulling out the value from the record:

<select name=”subcategory_id” id=”subcategory_id”>

</select>

Does somebody knows how to use the permission in the widget function? Thanks.