restrict table js
permit edit