Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-7272

Make the usage report description only visible to those who have permission to see the usage reports

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 3.4.2
    • Report: My Feedback
    • None
    • MOODLE_34_STABLE

      Make the usage report description only visible to those who have permission to see the usage reports. Currently it shows to everyone regardless of permission.

       

      In report/myfeedback/usage/index.php move (line 16):

      echo "<div class=\"usagereport\"><p>" . get_string('overview_text_usage', 'report_myfeedback') . "</p>";

      to below (line 21):

      if ($report->get_dashboard_capability($USER->id, 'report/myfeedback:usage')) {

            jgramp Jess Gramp (old account)
            jgramp Jess Gramp (old account)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.