- // If we're asked to flesh, and there's anything to flesh, then flesh.
- if( res_list->size && query_hash ) {
+ // If we're asked to flesh, and there's anything to flesh, then flesh it
+ // (but not for PCRUD, lest the user to bypass permissions by fleshing
+ // something that he has no permission to look at).
+ if( res_list->size && query_hash && ! enforce_pcrud ) {