fs_check_edit_p db user_id version_id { group_id " " }What it does:
Returns 1 if the user has permission to edit the version of the file; 0 otherwiseDefined in: /web/philip/tcl/file-storage-defs.tcl
Source code:
return [fs_check_write_p $db $user_id $version_id $group_id]