isOpenMethod.flow.php 1.7 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. if($this->loadModel('user')->isLogon() or ($this->app->company->guest and $this->app->user->account == 'guest'))
  3. {
  4. if($module == 'flow' and $method == 'browse') return true;
  5. if($module == 'flow' and $method == 'create') return true;
  6. if($module == 'flow' and $method == 'batchcreate') return true;
  7. if($module == 'flow' and $method == 'edit') return true;
  8. if($module == 'flow' and $method == 'operate') return true;
  9. if($module == 'flow' and $method == 'batchoperate') return true;
  10. if($module == 'flow' and $method == 'view') return true;
  11. if($module == 'flow' and $method == 'delete') return true;
  12. if($module == 'flow' and $method == 'link') return true;
  13. if($module == 'flow' and $method == 'unlink') return true;
  14. if($module == 'flow' and $method == 'export') return true;
  15. if($module == 'flow' and $method == 'exporttemplate') return true;
  16. if($module == 'flow' and $method == 'import') return true;
  17. if($module == 'flow' and $method == 'showimport') return true;
  18. if($module == 'flow' and $method == 'report') return true;
  19. if($module == 'workflowfield' and $method == 'addSqlVar') return true;
  20. if($module == 'workflowfield' and $method == 'delSqlVar') return true;
  21. if($module == 'workflowfield' and $method == 'buildVarControl') return true;
  22. if($module == 'workflowlabel' and $method == 'preview') return true;
  23. if($module == 'workflowlabel' and $method == 'removeFeatureTips') return true;
  24. if($module == 'workflowcondition' and $method == 'know') return true;
  25. if($module == 'workflowrule' and $method == 'checkregex') return true;
  26. }