Project

General

Profile

Revision 239c4040

ID239c4040ea26be2c36b2344e4aa276f27bee55db
Parent 2c23b054
Child ba127310

Added by Andreas Kohlbecker over 3 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

Add picture from clipboard (Maximum size: 40 MB)