Changeset 16425
- Timestamp:
- 05/21/08 20:57:13 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/MidCOM_2_8/midcom.helper.replicator/exporter/staging2live.php
r16098 r16425 52 52 function is_exportable(&$object, $check_exported = true) 53 53 { 54 /* 55 debug_push_class(__CLASS__, __FUNCTION__); 56 debug_print_r('called for', $object); 57 debug_pop(); 58 */ 54 59 // If we already know the state return early 55 60 if (isset($this->exportability[$object->guid])) branches/MidCOM_2_8/midcom.helper.replicator/queuemanager.php
r16295 r16425 69 69 $qb->add_constraint('status', '=', MIDCOM_REPLICATOR_AUTOMATIC); 70 70 $qb->set_limit(1); 71 $_MIDCOM->auth->request_sudo('midcom.helper.replicator'); 71 72 $count = $qb->count(); 73 $_MIDCOM->auth->drop_sudo(); 72 74 if ($count > 0) 73 75 { … … 89 91 function add_to_queue(&$object, $rewrite_to_delete = false) 90 92 { 93 $_MIDCOM->auth->request_sudo('midcom.helper.replicator'); 91 94 $GLOBALS['midcom_helper_replicator_logger']->push_prefix('Queue Manager'); 92 95 debug_push_class(__CLASS__, __FUNCTION__); … … 158 161 debug_pop(); 159 162 $GLOBALS['midcom_helper_replicator_logger']->pop_prefix(); 163 $_MIDCOM->auth->drop_sudo(); 160 164 return false; 161 165 } … … 168 172 debug_pop(); 169 173 $GLOBALS['midcom_helper_replicator_logger']->pop_prefix(); 174 $_MIDCOM->auth->drop_sudo(); 170 175 return false; 171 176 } … … 235 240 debug_pop(); 236 241 $GLOBALS['midcom_helper_replicator_logger']->pop_prefix(); 242 $_MIDCOM->auth->drop_sudo(); 237 243 return true; 238 244 } … … 701 707 $qb = midcom_helper_replicator_subscription_dba::new_query_builder(); 702 708 $qb->add_constraint('status', '<>', MIDCOM_REPLICATOR_DISABLED); 709 $_MIDCOM->auth->request_sudo('midcom.helper.replicator'); 703 710 $subscriptions = $qb->execute(); 711 $_MIDCOM->auth->drop_sudo(); 704 712 foreach ($subscriptions as $subscription) 705 713 {
