summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202019-12-03 16:13:40 +0530
committerSashi202019-12-03 16:13:40 +0530
commit74c324b6437322d62c32b47d45eb1dd2367f2cac (patch)
treef46ce1368c86c7e46e0f7fa474abbbf9097bc587
parentc67f394fb944f802b14cf44b12e23196ebd29fe3 (diff)
downloaddwsim_custom_model-74c324b6437322d62c32b47d45eb1dd2367f2cac.tar.gz
dwsim_custom_model-74c324b6437322d62c32b47d45eb1dd2367f2cac.tar.bz2
dwsim_custom_model-74c324b6437322d62c32b47d45eb1dd2367f2cac.zip
Modify permissions in bulk manage
-rwxr-xr-xabstract_bulk_approval.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/abstract_bulk_approval.inc b/abstract_bulk_approval.inc
index 7e74e39..43d43bc 100755
--- a/abstract_bulk_approval.inc
+++ b/abstract_bulk_approval.inc
@@ -94,7 +94,7 @@ function custom_model_abstract_bulk_approval_form_submit($form, &$form_state)
{
if ($form_state['values']['custom_model_proposals'])
// custom_model_abstract_del_lab_pdf($form_state['values']['custom_model_proposals']);
- if (user_access('custom model bulk manage code'))
+ if (user_access('custom model bulk manage abstract'))
{
$query = db_select('custom_model_proposal');
$query->fields('custom_model_proposal');
@@ -178,6 +178,7 @@ FOSSEE,IIT Bombay', array(
$query->condition('proposal_id', $form_state['values']['custom_model_proposals']);
$abstracts_q = $query->execute();
$experiment_list = '';
+ var_dump('expression');die;
while ($abstract_data = $abstracts_q->fetchObject())
{
db_query("UPDATE {custom_model_submitted_abstracts} SET abstract_approval_status = 0, is_submitted = 0, approver_uid = :approver_uid WHERE id = :id", array(