bozoh / moodle-block_simple_certificate Goto Github PK
View Code? Open in Web Editor NEWa moodle block to list users certificates
License: GNU General Public License v3.0
a moodle block to list users certificates
License: GNU General Public License v3.0
Hi...
In view.php, the user id is not validated and it is a request parameter. A user can get the certificate list for any other user changing the uid param by get.
$uid = required_param('uid', PARAM_INT);
It is a bug or a feature?
In the block content, the userid is from the session user.
$certs = self::get_issued_certificates($USER->id, $COURSE->id);
Besides, in mod/simplecertificate/wmsendfile.php the user is validated and the certificatecopy marker is added when the current user is different to the certificate user, however, the personal information is into the certificate. A user can get many certificates changing values into the URL, including guest users.
Can I change this and submit the correction? or
Do you want to keep it that way?
Saludos
Invalid get_string() identifier: 'simple_certificate:addinstance' or component 'block_simple_certificate'.
Perhaps you are missing
$string['simple_certificate:addinstance'] = '...';
in .../blocks/simple_certificate/lang/en/block_simple_certificate.php?
I guess the same applies for the other capability simple_certificate:myaddinstance
The class simple_certificate_tree
violates the naming conventions - see https://docs.moodle.org/dev/Plugin_contribution_checklist#Namespace-collisions
Better to use Moodle class autoloading mechanism that would implicitly "force" you to name the class correctly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.