Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

\local_coursetranslator\output\translate_form::require_access possibly not used #15

Open
tmuras opened this issue Jul 14, 2022 · 0 comments

Comments

@tmuras
Copy link

tmuras commented Jul 14, 2022

I think \local_coursetranslator\output\translate_form::require_access() function is not used.

Otherwise this will trigger an error:

require_capability('local/multilingual:edittranslations', \context_system::instance()->id);

as require_capability() expects context class as second argument, and there is an integer passed there (there should be \context_system::instance() instead of \context_system::instance()->id)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant