Commit graph

162 commits

Author SHA1 Message Date
Frederic Massart
ad778c84e8 MDL-34648 Course: Added capability to control sections moving 2012-08-21 13:31:19 +08:00
Andrew Davis
8ac95c279c MDL-27156 repository: Added a new capability so that select users can bypass file size restrictions 2012-06-14 09:19:25 +07:00
Ankit Agarwal
586e797689 MDL-33401 blocks: Allow managers to have block:edit capability by default 2012-06-05 08:50:43 +08:00
Eloy Lafuente (stronk7)
39b90b5152 MDL-30981 Upgrade API: Added related phpdocs 2012-04-02 00:40:13 +02:00
Petr Skoda
f76249cc25 MDL30964 fix core_access API docs 2012-02-27 07:19:03 +01:00
Petr Skoda
af18993548 MDL-30787 fix use of module and section edit capabilities 2011-12-18 13:54:38 +01:00
Sam Hemelryk
1ae9aa2b8f Merged MDL-29108 Advanced grading 2011-11-14 22:01:05 +13:00
sam marshall
5c60a847f5 MDL-26647 (1) 'extrauserselectorfields' -> 'showuseridentity', add capability
This change:
- Renames the existing setting 'extrauserselectorfields' to 'showuseridentity'
  in preparation for using it in more places. (Upgrade change, new version.)
- Adds a new capability moodle/site:viewuseridentity, now required in order
  to see the extra fields; if you don't have the capability, you don't see them
- Slightly improves the display of extra fields in user selector list; it used
  to be like 'sam marshall, 01234567, email@address' and is now
  'sam marshall [01234567, email@address]' ie the fields are in square
  brackets
- Turns feature on for the group selector - the feature was enabled for other
  user selectors but not for the group selector. Tim did the disable code, he
  thinks this may be to do with more people having access to group selector -
  probably not a problem now it is controlled by capability.
2011-11-04 13:57:08 +00:00
David Mudrak
86e9ccfd92 MDL-29794 Shared grading form templates can be deleted now
There is a new capability to manage all shared templates. Without this
capability, the user is allowed to delete just templates they previously
shared.

In the future, an option to edit the template directly might be added.
At the moment, the workaround is to pick the template into a temporary
assignment, edit it there and re-save it as a new template.
2011-11-01 14:05:11 +01:00
David Mudrak
553af5fd6a New capability to share and publish a form as a template 2011-10-18 14:55:25 +02:00
David Mudrak
f25a5a32b8 MDL-29479 Introducing a new capability moodle/grade:managegradingforms 2011-10-03 22:26:52 +02:00
Dongsheng Cai
f2eac75624 WEBSERVICE MDL-29170 reduce createmobiletoken capability risk level 2011-09-01 11:02:03 +08:00
Sam Hemelryk
b3da2877a7 MDL-28503 comment-caps Slight improvement to allow frontpage and guest users to view comments by default 2011-07-29 09:32:48 +08:00
Petr Skoda
88d823c1f4 MDL-27994 course creator role is for creating courses only!
The course creator role is designed to be used to create courses, nothing else - that is create new course, create new course from backup + view hidden courses and categories.
2011-07-24 14:18:13 +02:00
Dongsheng Cai
13ea96c40b MDL-27552 get webservice token by providing username and password 2011-06-13 17:41:56 +08:00
Sam Hemelryk
5dd7e903ff lib-db-access MDL-25672 editingteacher can no longer delete courses by default. 2011-01-14 10:23:37 +08:00
Eloy Lafuente
296f6c99b1 NOBUG: moodle/blog:manageexternal is SYSTEM cap, not USER at all 2010-11-19 18:25:27 +00:00
Sam Hemelryk
bac233d326 backup MDL-22184 Scheduled backups are now possible again through cron.
AMOS BEGIN
 MOV [move scheduledsetup,core_backup],[automatedsetup,core_backup]
 MOV [scheduledsettings,core_backup],[automatedsettings,core_backup]
 MOV [scheduledstorage,core_backup],[automatedstorage,core_backup]
 MOV [scheduledstoragehelp,core_backup],[automatedstoragehelp,core_backup]
 MOV [scheduledbackupsinactive,core],[automatedbackupsinactive,core_backup]
 MOV [scheduledbackupstatus,core],[automatedbackupstatus,core_backup]
 CPY [schedule,core],[automatedbackupschedule,core_backup]
 MOV [backupschedulehelp,core],[automatedbackupschedulehelp,core_backup]
AMOS END
2010-11-10 06:07:43 +00:00
jerome mouneyrac
6d153e67b4 webservice MDL-18655 add new capability moodle/user:viewalldetails allowing to see all user information. This capability is set up copying the current moodle/user:update assignations 2010-11-05 06:55:43 +00:00
Eloy Lafuente
7efd488e76 MDL-23437 backup - move restore:restoreactivity cap from module to course context 2010-09-05 16:58:30 +00:00
David Mudrak
2134a91dd5 MDL-21696 Getting rid of legacy language customization stuff 2010-08-24 23:17:19 +00:00
Petr Skoda
5b4a78e281 improved docs and license headers, adding direct access protection 2010-08-03 08:07:49 +00:00
Martin Dougiamas
e4f413b4b3 MDL-23302 Credit to Aparup. New cap moodle/user:manageownfiles to control private user files area 2010-07-22 09:05:13 +00:00
Martin Dougiamas
ad0ae2610f MDL-23187 Generic ratings and comments permissions now appear on course pages, AND are added to authenticated user role. You need these PLUS specific module permissions to actually be able to do any ratings/comments, so it makes sense to show them. Not happy about usability of needing two permissions to switch it on but it does give a lot of extra control. 2010-07-16 07:47:23 +00:00
Petr Skoda
df997f841f MDL-21782 reworked enrolment framework, the core infrastructure is in place, the basic plugins are all implemented; see the tracker issue for list of unfinished bits, expect more changes and improvements during the next week
AMOS START
    MOV [sendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage,enrol_self]
    MOV [configsendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage_desc,enrol_self]
    MOV [enrolstartdate,core],[enrolstartdate,enrol_self]
    MOV [enrolenddate,core],[enrolenddate,enrol_self]
    CPY [welcometocourse,core],[welcometocourse,enrol_self]
    CPY [welcometocoursetext,core],[welcometocoursetext,enrol_self]
    MOV [notenrollable,core],[notenrollable,core_enrol]
    MOV [enrolenddaterror,core],[enrolenddaterror,enrol_self]
    MOV [enrolmentkeyhint,core],[passwordinvalidhint,enrol_self]
    MOV [coursemanager,core_admin],[coursecontact,core_admin]
    MOV [configcoursemanager,core_admin],[coursecontact_desc,core_admin]
    MOV [enrolledincourserole,core],[enrolledincourserole,enrol_manual]
    MOV [enrolme,core],[enrolme,core_enrol]
    MOV [unenrol,core],[unenrol,core_enrol]
    MOV [unenrolme,core],[unenrolme,core_enrol]
    MOV [enrolmentnew,core],[enrolmentnew,core_enrol]
    MOV [enrolmentnewuser,core],[enrolmentnewuser,core_enrol]
    MOV [enrolments,core],[enrolments,core_enrol]
    MOV [enrolperiod,core],[enrolperiod,core_enrol]
    MOV [unenrolroleusers,core],[unenrolroleusers,core_enrol]
AMOS END
2010-06-21 15:30:49 +00:00
Martin Dougiamas
17957b8f7f Community block MDL-19314 Fixing default capabilities for default roles for community block 2010-06-18 03:48:37 +00:00
jerome mouneyrac
755f96f8cf Community block MDL-19314 add community block access control (two new capability: moodle/community:add and moodle/community:download) 2010-06-08 02:21:50 +00:00
Sam Marshall
31c9330392 accesslib MDL-22527 Batch change to replace 'legacy' arrays with 'archetypes' arrays in access.php 2010-05-21 11:51:23 +00:00
Martin Dougiamas
03d9401e7d My Moodle MDL-19124 New version of My Moodle, User profiles and Course profiles, all with block support
Thanks very much to Remote Learner Canada, especially Hubert Chathi and Olav Jordan, for their work on the bulk of this code, and also Mike Churchward for supporting them.  I worked on it after that (actually simplified it by removing a feature temporarily: multiple pages) to bring it more to what I was imagining, and to provide a base to build on and get all the navigation perfect.

There's still work to do.  Some blocks don't quite work as expected, and some of the code still needs upgrading to bring it fully into line with 2.0.  We also could use a much better course overview block and better CSS styling of the profile pages.  But it's definitely more usable this it was, I think.
2010-05-04 13:04:35 +00:00
Petr Skoda
64fc50d0fc MDL-21655 fixing regression, manager does not need mnet caps 2010-05-02 17:05:35 +00:00
Eloy Lafuente
57ca97b3a7 MDL-21668 backup - New capabilities creation 2010-05-01 16:42:29 +00:00
jerome mouneyrac
07ab0c80ec hub MDL-19309 new site registration form + course publication + community block 2010-05-01 05:05:55 +00:00
Martin Dougiamas
2be4d090c0 course completion MDL-2631 Course completion feature - Thanks to Aaron Barnes and Catalyst IT for this significant contribution. It is now officially possible to finish a course!
Even though I've tweaked this and done some polishing, there is still plenty to do on it now in HEAD, mostly to do with UI, usability and strings, so we'll keep working on it.  Aaron already has a number of improvements to add to it.
2010-04-30 03:06:22 +00:00
Dan Marsden
30b5ee6b06 Plagiarism Lib MDL-13680 - reverting commit for now. 2010-04-28 02:47:25 +00:00
Dan Marsden
cc3b3fae5d Plagiarism Lib MDL-13680 - add Plagiarism lib support for modules. - initially including the assignment module and Turnitin service - Backup deliberately excluded at this stage and I expect some of the file handling to change slightly before 2.0 release. 2010-04-27 21:52:07 +00:00
Petr Skoda
3f791403b3 MDL-21781 cohort capabilities 2010-04-23 09:05:56 +00:00
Martin Dougiamas
6595a5681e ratings MDL-21657 Improving capabilities for ratings.
Rather than performing complicated upgrade procedures from the old (broken) logic in three activity modules, we are adding new capabilities to those three modules to make them all consistent, and using them in a callback from the Ratings API.  This is the same as the Comments API.

The downside is that two sets of capabilities need to be enabled for ratings to work.  Hopefully this can be mitigated somewhat when build some sort of shortcuts on the module settings forms to set capabilities.  In the meantime, the effect is reduced somewhat by having all the rating capabilities enabled by default for student and teacher roles.  This means control is in the hands of whatever the modules have set, giving very close backward compatibility.

This is not the perfect solution, but neither were the other two.
2010-04-23 05:42:22 +00:00
Petr Skoda
6fbaf7f8b8 fixed my own sloppy typos in comments 2010-04-18 10:14:04 +00:00
Petr Skoda
4f0c2d0009 MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too 2010-03-31 07:41:31 +00:00
Andrew Davis
3be8b5b8c3 rating MDL-21657 modified moodle/rating:rate risks 2010-03-19 07:37:51 +00:00
Andrew Davis
e116a81833 rating MDL-21657 improved the default rating permissions 2010-03-18 07:14:49 +00:00
Andrew Davis
19fae1198c rating MDL-21657 changed capabilities from ratings (plural) to rating (singular) 2010-03-16 09:02:34 +00:00
Andrew Davis
a09aeee47b rating MDL-21657 first commit for rating library 2010-03-16 05:57:51 +00:00
Petr Skoda
01a2ce80ec MDL-21710, MDL-21711 new permissions evaluation and overriding UI 2010-03-07 09:28:54 +00:00
Eloy Lafuente
157aa3a22d MDL-21666 backup & restore caps - renaming the import one 2010-02-19 19:11:06 +00:00
Eloy Lafuente
2fdde5d178 MDL-21666 backup & restore caps - upload/download renamed 2010-02-19 18:33:26 +00:00
Eloy Lafuente
d294000348 MDL-21666 backup & restore caps - moving to new naming schema. More to come. 2010-02-19 17:50:14 +00:00
jerome mouneyrac
52dd27bfbc webservice MDL-17135 remove old webserviceuse capability. It is now controlled by protocol capabilities. Add warning to protocol capabilities. 2010-02-01 03:23:35 +00:00
jerome mouneyrac
5eacbd4be4 webservice MDL-20805 added token creation page in user profil (with service required capability check and moodle/webservice:createtoken capibility check) 2010-01-12 10:34:52 +00:00
Eloy Lafuente
5e934890c9 MDL-16658 restore - new restore:createuser cap + pre-check users before restoring; merged from 19_STABLE 2009-12-30 17:35:36 +00:00