Project

General

Profile

« Previous | Next » 

Revision 239c4040

Added by Andreas Kohlbecker over 7 years ago

fix #6115 adding missing permission check to cdm nodes integration

View differences:

modules/cdm_dataportal/cdm_api/cdm_node.php
200 200
 *     A $page element suitable for use by drupal_render().
201 201
 */
202 202
function cdm_node_show($cdm_node_type, $uuid, $title, $content) {
203

  
204
  if(!user_access('access cdm content')){
205
    drupal_access_denied();
206
  }
207

  
203 208
  // tell drupal code to load the node
204 209
  $node = cdm_load_node($cdm_node_type, $uuid, $title);
205 210
  // set the title coming supplied by a cdm_dataportal_{CDM_NODE_TYPE}_view function

Also available in: Unified diff