Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 106... Línea 106...
106
     *
106
     *
107
     * Sometimes permission check may depend on the action and/or id of the entity.
107
     * Sometimes permission check may depend on the action and/or id of the entity.
108
     * If necessary, form data is available in $this->_ajaxformdata or
108
     * If necessary, form data is available in $this->_ajaxformdata or
109
     * by calling $this->optional_param()
109
     * by calling $this->optional_param()
110
     */
110
     */
111
    protected function check_access_for_dynamic_submission(): void {
111
    public function check_access_for_dynamic_submission(): void {
112
        require_capability('moodle/user:manageownfiles', $this->get_context_for_dynamic_submission());
112
        require_capability('moodle/user:manageownfiles', $this->get_context_for_dynamic_submission());
113
    }
113
    }
Línea 114... Línea 114...
114
 
114
 
115
    /**
115
    /**
Línea 129... Línea 129...
129
     * File upload options
129
     * File upload options
130
     *
130
     *
131
     * @return array
131
     * @return array
132
     * @throws \coding_exception
132
     * @throws \coding_exception
133
     */
133
     */
134
    protected function get_options(): array {
134
    public function get_options(): array {
135
        global $CFG;
135
        global $CFG;
Línea 136... Línea 136...
136
 
136
 
137
        $maxbytes = $CFG->userquota;
137
        $maxbytes = $CFG->userquota;
138
        $maxareabytes = $CFG->userquota;
138
        $maxareabytes = $CFG->userquota;