wp_check_style_authorization db style_id user_idWhat it does:
Verifies that the user owns this style.Defined in: /web/philip/tcl/wp-defs.tcl
Source code:
if { [database_to_tcl_string $db "select owner from wp_styles where style_id = [wp_check_numeric $style_id]"] != $user_id } { ad_return_error "Authorization Failed" "You do not have the proper authorization to access this feature." ad_script_abort }