Issue Details (XML | Word | Printable)

Key: MDL-20712
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Petr Skoda
Reporter: Petr Skoda
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle
MDL-16438

use $capabilities = array() in db/access.php

Created: 02/Nov/09 07:37 AM   Updated: 05/Nov/09 03:37 AM
Return to search
Component/s: General
Affects Version/s: 2.0
Fix Version/s: 2.0

Participants: Petr Skoda
Security Level: None
Resolved date: 05/Nov/09
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
at present each access.php sets up array with name "plugintype_pluginname_capabilities", but the rest of similar files is using something like

$capabilitites = array();

We can implement this is a fully BC way...

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Skoda made changes - 02/Nov/09 07:38 AM
Field Original Value New Value
Description at present each access.php sets up array with name "plugintype_pluginname_access", but the rest of similar files is using something like

$capabilitites = array();

We can implement this is a fully BC way...
at present each access.php sets up array with name "plugintype_pluginname_capabilities", but the rest of similar files is using something like

$capabilitites = array();

We can implement this is a fully BC way...
Petr Skoda committed 64 files to 'Moodle CVS' - 05/Nov/09 03:24 AM
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
MODIFY repository/local/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY mod/feedback/db/access.php   Rev. 1.6    (+3 -6 lines)
MODIFY webservice/xmlrpc/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY admin/report/courseoverview/db/access.php   Rev. 1.3    (+1 -1 lines)
MODIFY grade/export/ods/db/access.php   Rev. 1.6    (+1 -1 lines)
MODIFY mod/wiki/db/access.php   Rev. 1.10    (+2 -2 lines)
MODIFY grade/report/grader/db/access.php   Rev. 1.7    (+1 -1 lines)
MODIFY grade/report/user/db/access.php   Rev. 1.8    (+1 -1 lines)
MODIFY mod/chat/db/access.php   Rev. 1.12    (+3 -6 lines)
MODIFY repository/mahara/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY grade/export/xls/db/access.php   Rev. 1.6    (+1 -1 lines)
MODIFY mod/folder/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY repository/filesystem/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY webservice/amf/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY repository/remotemoodle/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY mod/imscp/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY repository/picasa/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY grade/report/overview/db/access.php   Rev. 1.8    (+1 -1 lines)
MODIFY repository/flickr/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY admin/report/questioninstances/db/access.php   Rev. 1.3    (+1 -1 lines)
MODIFY grade/export/xml/db/access.php   Rev. 1.6    (+1 -1 lines)
MODIFY lib/accesslib.php   Rev. 1.623    (+5 -1 lines)
MODIFY repository/googledocs/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY course/report/log/db/access.php   Rev. 1.5    (+1 -1 lines)
MODIFY mod/resource/db/access.php   Rev. 1.8    (+1 -1 lines)
MODIFY repository/upload/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY mod/scorm/db/access.php   Rev. 1.13    (+3 -6 lines)
MODIFY mod/choice/db/access.php   Rev. 1.8    (+3 -6 lines)
MODIFY mod/forum/db/access.php   Rev. 1.19    (+3 -6 lines)
MODIFY repository/alfresco/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY course/report/progress/db/access.php   Rev. 1.3    (+1 -1 lines)
MODIFY mod/glossary/db/access.php   Rev. 1.13    (+3 -6 lines)
MODIFY course/report/participation/db/access.php   Rev. 1.3    (+1 -1 lines)
MODIFY mod/quiz/db/access.php   Rev. 1.14    (+1 -1 lines)
MODIFY blocks/online_users/db/access.php   Rev. 1.3    (+1 -1 lines)
MODIFY repository/flickr_public/db/access.php   Rev. 1.3    (+1 -1 lines)
MODIFY grade/import/xml/db/access.php   Rev. 1.7    (+1 -1 lines)
MODIFY grade/import/csv/db/access.php   Rev. 1.7    (+1 -1 lines)
MODIFY repository/youtube/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY repository/draft/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY repository/s3/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY grade/export/txt/db/access.php   Rev. 1.6    (+1 -1 lines)
MODIFY enrol/authorize/db/access.php   Rev. 2.4    (+1 -1 lines)
MODIFY mod/data/db/access.php   Rev. 1.22    (+3 -6 lines)
MODIFY mod/url/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY webservice/soap/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY admin/report/unittest/db/access.php   Rev. 1.3    (+1 -1 lines)
MODIFY mod/page/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY course/report/stats/db/access.php   Rev. 1.3    (+1 -1 lines)
MODIFY mod/quiz/report/statistics/db/access.php   Rev. 1.4    (+1 -1 lines)
MODIFY webservice/rest/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY repository/webdav/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY repository/boxnet/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY lib/db/access.php   Rev. 1.111    (+3 -6 lines)
MODIFY course/report/outline/db/access.php   Rev. 1.3    (+1 -1 lines)
MODIFY mod/assignment/db/access.php   Rev. 1.11    (+3 -6 lines)
MODIFY grade/report/outcomes/db/access.php   Rev. 1.8    (+1 -1 lines)
MODIFY blocks/rss_client/db/access.php   Rev. 1.11    (+3 -6 lines)
MODIFY mod/lesson/db/access.php   Rev. 1.9    (+1 -1 lines)
MODIFY admin/report/security/db/access.php   Rev. 1.3    (+1 -1 lines)
MODIFY repository/url/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY mod/survey/db/access.php   Rev. 1.7    (+3 -6 lines)
MODIFY repository/wikimedia/db/access.php   Rev. 1.2    (+1 -1 lines)
MODIFY mod/hotpot/db/access.php   Rev. 1.8    (+3 -6 lines)
Petr Skoda added a comment - 05/Nov/09 03:37 AM
done, all the files like access.php, events.php, messages.php and services.php are naming the definitions the same way...

Petr Skoda made changes - 05/Nov/09 03:37 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]