original_string: public function can_manage_rule() {
          $courseid = $this->rulecourseid;
          $context = empty($courseid) ? \context_system::instance() : \context_course::instance($courseid);
          return has_capability('tool/monitor:managerules', $context);
      }
code: public function can_manage_rule() {
          $courseid = $this->rulecourseid;
          $context = empty($courseid) ? \context_system::instance() : \context_course::instance($courseid);
          return has_capability('tool/monitor:managerules', $context);
      }
code_tokens: public function can_manage_rule ( ) { $ courseid = $ this -> rulecourseid ; $ context = empty ( $ courseid ) ? \ context_system :: instance ( ) : \ context_course :: instance ( $ courseid ) ; return has_capability ( 'tool/monitor:managerules' , $ context ) ; }
docstring: Can the current user manage the rule associate with this subscription?
  
  @return bool true if the current user can manage this rule, else false.
docstring_tokens: Can the current user manage the rule associate with this subscription?