From a7e35395aa7a42e72743d6042fc43ca951675b8f Mon Sep 17 00:00:00 2001 From: robertall Date: Thu, 12 Jun 2008 15:18:13 +0000 Subject: [PATCH] [MDL-8407] Re-added one line of code from v 1.176 needed by tabs.php and export.php to make the default role required to export database records weaker. Sorry for the messup in merging at the previous commit. --- mod/data/lib.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mod/data/lib.php b/mod/data/lib.php index dfd631ce5a..1e714bb550 100755 --- a/mod/data/lib.php +++ b/mod/data/lib.php @@ -32,6 +32,11 @@ define ('DATA_APPROVED', -3); define ('DATA_TIMEADDED', 0); define ('DATA_TIMEMODIFIED', -4); +define ('DATA_CAP_EXPORT', 'mod/data:viewalluserpresets'); +// Users having assigned the default role "Non-editing teacher" can export database records +// Using the mod/data capability "viewalluserpresets" existing in Moodle 1.9.x. +// In Moodle >= 2, new roles may be introduced and used instead. + class data_field_base { // Base class for Database Field Types (see field/*/field.class.php) var $type = 'unknown'; // Subclasses must override the type with their name -- 2.39.5