Petr Skoda
7abbc5c2ba
MDL-23062 switch role now works for admin too
2010-07-07 08:21:51 +00:00
Petr Skoda
614d18d26c
MDL-22984 using standard plugin name string for repositories
...
AMOS BEGIN
MOV [repositoryname,repository_alfresco],[pluginname,repository_alfresco]
MOV [repositoryname,repository_boxnet],[pluginname,repository_boxnet]
MOV [repositoryname,repository_dropbox],[pluginname,repository_dropbox]
MOV [repositoryname,repository_filesystem],[pluginname,repository_filesystem]
MOV [repositoryname,repository_flickr],[pluginname,repository_flickr]
MOV [repositoryname,repository_flickr_public],[pluginname,repository_flickr_public]
MOV [repositoryname,repository_googledocs],[pluginname,repository_googledocs]
MOV [repositoryname,repository_local],[pluginname,repository_local]
MOV [repositoryname,repository_merlot],[pluginname,repository_merlot]
MOV [repositoryname,repository_picasa],[pluginname,repository_picasa]
MOV [repositoryname,repository_recent],[pluginname,repository_recent]
MOV [repositoryname,repository_s3],[pluginname,repository_s3]
MOV [repositoryname,repository_upload],[pluginname,repository_upload]
MOV [repositoryname,repository_url],[pluginname,repository_url]
MOV [repositoryname,repository_user],[pluginname,repository_user]
MOV [repositoryname,repository_webdav],[pluginname,repository_webdav]
MOV [repositoryname,repository_wikimedia],[pluginname,repository_wikimedia]
MOV [repositoryname,repository_youtube],[pluginname,repository_youtube]
AMOS END
2010-07-04 12:52:10 +00:00
David Mudrak
2418d71ec4
NOBUG: Fixed PHPdoc
2010-06-24 07:51:31 +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
Petr Skoda
a07600473d
MDL-22646 create_context() is internal implementation function, to be used only inside accesslib.php
2010-06-04 07:30:42 +00:00
Petr Skoda
3966ba3e1a
MDL-22509 fixed wrong group join
2010-05-27 14:05:24 +00:00
aparup
35900f6759
fixed wording - MDL22441 - renamed the modules 'system' heading to 'activities'
2010-05-24 07:21:18 +00:00
Petr Skoda
4f65e0fbf7
more comment typos fixed
2010-05-22 18:46:43 +00:00
Petr Skoda
ed149942a6
fixed more silly typos in comments
2010-05-21 19:31:17 +00:00
Sam Marshall
9e0c17fbf5
MDL-22527 Accesslib patch to support name 'archetypes' instead of 'legacy' in access.php files
2010-05-21 11:43:37 +00:00
Petr Skoda
a05bcfbaa5
MDL-14589 files are attached to context so it makes sense to delete them when deleting the context
2010-05-20 07:53:48 +00:00
Petr Skoda
196f1a259d
MDL-17317 delete_context can not return false any more, only exceptions when problem found
2010-05-20 07:40:17 +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
Inaki
57e9d92f38
accesslib: MDL-22089 Unassigning role from one user causes warning to happen
...
The 3rd parameter to role_unassign() was renamed to $groupid_ignored some weeks
ago (as part of MDL-21655), but the $args array that is used to build the query
was not updated to reflect that change. Simply remove 'groupid' from the $args
array so it isn't used in the query at all.
2010-05-02 22:24:35 +00:00
Petr Skoda
83bbafaa18
MDL-21712 fixed regression - guest could access any course, sorrry
2010-04-30 15:36:26 +00:00
Martin Dougiamas
4c14885683
MDL-22056 More tidying up of pluginnames for course reports, and more component names tidying
2010-04-22 15:54:20 +00:00
Martin Dougiamas
2f51f0ca1c
MDL-15252 Fixing a bug and improving the display of component names (for role assign page mostly)
2010-04-22 15:37:54 +00:00
Petr Skoda
bac6e62eba
MDL-22054 starting to switch blocks to pluginname
2010-04-11 10:09:59 +00:00
Petr Skoda
e8c2189d78
MDL-21655 marking groupid parameters as unused when assigning/unassigning roles because those were never implemented and are not planned to be ever implemented
2010-04-07 07:07:37 +00:00
Martin Dougiamas
dcc779cca4
lib/accesslib MDL-21655 Added useful function count_enrolled_users() to help counting all participating users in a context
2010-04-05 07:34:50 +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
Petr Skoda
1209cb5c88
fixed regression in recent commit - context path
2010-03-24 13:10:10 +00:00
Petr Skoda
01a2ce80ec
MDL-21710, MDL-21711 new permissions evaluation and overriding UI
2010-03-07 09:28:54 +00:00
Sam Hemelryk
a881f97099
files MDL-20635 Changed cleanup of files when a context is deleted from the moment it occurs to cron
2009-12-23 01:24:17 +00:00
Andrew Davis
e7a8b69d39
contexts MDL-20211 changed fetch_context_capabilities() to use underscores instead of forward slashes. Made get_child_contexts() return an array as per its doco and as expected by the calling code.
2009-11-25 05:44:15 +00:00
Petr Skoda
d5a8d9aa71
MDL-20625 new delegated transaction support in DML
2009-11-07 08:52:56 +00:00
Petr Skoda
0ac940b3bf
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
2009-11-04 19:24:12 +00:00
Sam Hemelryk
8432f5e6c5
files MDL-20635 Added support for cleaning up files associated with a context when it is deleted
...
Note: This is a temporary solution until we have a patch to clean them up in a cron run
2009-11-04 06:11:32 +00:00
Petr Skoda
117bd74897
MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup
2009-11-01 11:31:16 +00:00
Petr Skoda
df97c6ee57
MDL-14679 fixing old TODO, get_record now throws exception on error
2009-11-01 09:31:09 +00:00
Martin Dougiamas
7fde45a7e6
accesslib - Remove some notices when user is not logged in
2009-10-27 09:31:46 +00:00
Petr Skoda
b8affd4c8a
MDL-12886 support for ws cap names in core
2009-10-26 19:41:06 +00:00
ericmerrill
4a09658ea8
My Moodle/Courses: MDL-20472 get_my_courses returns 2 more courses then limit. Repairs two off by one errors in get_my_courses and get_user_courses_bycap.
2009-10-08 04:52:33 +00:00
skodak
f1064cca78
MDL-19039 improved default frontpage role capability evealuation, needs to be manually enabled in config.php
2009-10-05 17:08:16 +00:00
mudrd8mz
bf66a674ce
removing deletions from {blog_association} from the core
...
The {blog_association} is not defined but it is still referenced in the
core functions. This seems to be some blog subsystem mess that prevents
the core from removing any activity module and the context. I am sorry
Nico if I break something in your current work...
2009-10-01 14:41:20 +00:00
skodak
9a0df45a01
MDL-12886 new design of external service functions, groups api improved and known problems fixed - still work in progress with lots of todos - sorry
2009-09-14 23:52:08 +00:00
nicolasconnault
cae837087a
MDL-19676 Blog improvements
2009-09-04 00:36:43 +00:00
nicolasconnault
aa9a686740
MDL-19799 Upgraded calls to helpbutton, print_simple_box* and notify
2009-08-18 05:20:12 +00:00
dongsheng
68bd9e5e13
"MDL-20024, fixed missing language string and support repository plugins"
2009-08-07 08:59:47 +00:00
skodak
0a127169fe
MDL17980 reverting last commit - other devs agreed, to be explained in tracker
2009-08-03 07:35:41 +00:00
peterbulmer
1b509b3699
MDL17980 mnet improvements
...
* Allow multiple roles to be allocated by identity provider
* Allow existing enrolment plugins to manage mnet enrolments
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2009-08-03 03:38:23 +00:00
tjhunt
41e87d30bc
accesslib: MDL-19882 require_capability no longer does an automatic require_login.
2009-07-21 06:24:44 +00:00
tjhunt
e92c286c20
block contexts: MDL-19098 every block should have a context
...
even non-course and sticky blocks.
The parent context is block_instances.parentcontextid.
The block context should be used for checking permissions directly
related to the block, like moodle/block:view or moodle/site:manageblocks.
However, if the block is displaying information about the current page,
for example the participants block showing who 'here', then it may be
better to use the context of the page where the bloack is appearing -
in other words $this->page->context - to check permissions about the
user's ability to see participants here.
Or, if the block is displaying something stronly related to courses,
for example, a course meny block, the block should probably use the
context for $this->page->course to check permissions.
2009-07-13 08:37:34 +00:00
tjhunt
13a0d3d3c9
blocks MDL-19536: rename block_instances.contextid to parentcontextid to avoid gross confusion
2009-07-10 05:58:59 +00:00
moodler
024f3f9749
accesslib MDL-19730 fixing regression from MDL-19077 where has_capability fails when $USER->id=0 (so they couldn't see blocks etc)
2009-07-07 07:06:19 +00:00
tjhunt
8a9c1c1c2d
Add a warning that require_capabiliy can only be used before output is started.
2009-07-04 14:22:11 +00:00
tjhunt
c84a2dbea2
MDL-19077 - change how $OUTPUT is initialised.
...
Please read the comment at the top of bootstrap_renderer in setuplib.php
2009-06-29 05:00:45 +00:00
tjhunt
31a9987770
install: MDL-19610 encapsulate empty($CFG->rolesactive) checks in a during_initial_install() function.
2009-06-24 09:17:56 +00:00
skodak
17da2e6f28
MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions
2009-06-19 14:25:56 +00:00
stronk7
f59309921b
MDL-19465 accesslib - improve get_user_access_sitewide() performance (~10%)
2009-06-16 15:34:55 +00:00