| 1 |
<?php |
<?php |
| 2 |
// $Id: uc_node_checkout.module,v 1.8.2.8 2009/07/30 16:27:54 rszrama Exp $ |
// $Id: uc_node_checkout.module,v 1.8.2.9 2009/07/30 16:38:35 rszrama Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 395 |
|
|
| 396 |
if (!empty($fields) && !user_access('edit any '. $type .' content')) { |
if (!empty($fields) && !user_access('edit any '. $type .' content')) { |
| 397 |
foreach ($fields as $field) { |
foreach ($fields as $field) { |
| 398 |
$form[$field]['#access'] = FALSE; |
if ($field == 'preview') { |
| 399 |
|
$form['buttons']['preview']['#access'] = FALSE; |
| 400 |
|
} |
| 401 |
|
else { |
| 402 |
|
$form[$field]['#access'] = FALSE; |
| 403 |
|
} |
| 404 |
} |
} |
| 405 |
} |
} |
| 406 |
|
|