MDL-58983 assign: Hide grade button if no cap
authorDamyon Wiese <damyon@moodle.com>
Tue, 28 Nov 2017 07:47:30 +0000 (15:47 +0800)
committerDamyon Wiese <damyon@moodle.com>
Tue, 28 Nov 2017 07:47:30 +0000 (15:47 +0800)
commitbf0a1542179a4ea0e34f0002815c553f2542a901
treee04cb37211f4380e33d0c7ac62d8d6952ae6c21f
parent5bde2c2b62a71a6d4f89ac90755db1cced2e6baa
MDL-58983 assign: Hide grade button if no cap

If the current user cannot grade students, don't show them the button.
mod/assign/locallib.php
mod/assign/renderable.php
mod/assign/renderer.php