MDL-20712 using just $capablities for capability definition array, all other files in db/* do not use component names in definition array; old capability array names are of course supported

This commit is contained in:
Petr Skoda 2009-11-04 19:24:12 +00:00
parent e3acc8af7a
commit 0ac940b3bf
64 changed files with 92 additions and 124 deletions

View file

@ -15,7 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
$gradeexport_ods_capabilities = array(
$capabilities = array(
'gradeexport/ods:view' => array(
'riskbitmask' => RISK_PERSONAL,

View file

@ -15,7 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
$gradeexport_txt_capabilities = array(
$capabilities = array(
'gradeexport/txt:view' => array(
'riskbitmask' => RISK_PERSONAL,

View file

@ -15,7 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
$gradeexport_xls_capabilities = array(
$capabilities = array(
'gradeexport/xls:view' => array(
'riskbitmask' => RISK_PERSONAL,

View file

@ -15,7 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
$gradeexport_xml_capabilities = array(
$capabilities = array(
'gradeexport/xml:view' => array(
'riskbitmask' => RISK_PERSONAL,

View file

@ -15,7 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
$gradeimport_csv_capabilities = array(
$capabilities = array(
'gradeimport/csv:view' => array(
'captype' => 'write',

View file

@ -15,7 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
$gradeimport_xml_capabilities = array(
$capabilities = array(
'gradeimport/xml:view' => array(
'captype' => 'write',

View file

@ -15,7 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
$gradereport_grader_capabilities = array(
$capabilities = array(
'gradereport/grader:view' => array(
'riskbitmask' => RISK_PERSONAL,

View file

@ -15,7 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
$gradereport_outcomes_capabilities = array(
$capabilities = array(
'gradereport/outcomes:view' => array(
'riskbitmask' => RISK_PERSONAL,

View file

@ -15,7 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
$gradereport_overview_capabilities = array(
$capabilities = array(
'gradereport/overview:view' => array(
'riskbitmask' => RISK_PERSONAL,

View file

@ -15,7 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
$gradereport_user_capabilities = array(
$capabilities = array(
'gradereport/user:view' => array(
'riskbitmask' => RISK_PERSONAL,