Esempio n. 1
0
 /**
  * when processing the form, we always want to store the current userid
  * (subject to save-on-edit, but that's done elsewhere), regardless of
  * element access settings, see:
  * http://fabrikar.com/forums/showthread.php?p=70554#post70554
  * So overriding the element model canView and returning true in that
  * case allows _addDefaultDataFromRO to do that, whilst still enforcing
  * Read Access settings for detail/table view
  */
 function canView()
 {
     if (JRequest::getVar('task', '') == 'processForm') {
         return true;
     }
     return parent::canView();
 }