Commit Graph

806 Commits

Author SHA1 Message Date
diml 84257f3fe1 changing access resolution for buttons labels 2007-10-07 19:44:59 +00:00
diml f651fb3980 unconsistent file 2007-10-07 19:44:18 +00:00
diml a76b196392 string nl translations for search block 2007-10-07 19:40:47 +00:00
diml 351708dcbb string fr translations for search block 2007-10-07 19:40:15 +00:00
diml 9424e7e0b5 string en translations for search block 2007-10-07 19:39:42 +00:00
skodak 777b7ed2d1 adding caps for new gradebook settings into has_admin_caps() perf hack in block_admin_tree 2007-10-02 15:33:09 +00:00
toyomoyo 165088f687 change participants of frontpage course to display all users, if current user has capability MDL-11143 2007-10-02 03:37:30 +00:00
nicolasconnault 34d6a78987 MDL-11406 Removed lang files from block folder, and put them in en_utf8 and fr_utf8 2007-09-28 08:46:25 +00:00
skodak 42626376f3 MDL-11442 removed last instances of global $course 2007-09-27 08:18:28 +00:00
moodler 5dec234de7 Allow the Admin tree block to be displayed on the My Moodle page.
Reported in NZ workshop.     MDL-11450
2007-09-26 02:33:43 +00:00
stronk7 28271c7205 Second pass. Some more default comments are out. MDL-11385 2007-09-24 22:10:13 +00:00
martinlanghoff 9a55125ef6 blocks/admin_tree: applicable_formats() is called as a class method
Can't find it documented anywhere, but applicable_formats() is only
ever called as a class method, so it cannot say $this. Instead, say
block_admin_tree::has_admin_caps().
2007-09-19 07:47:38 +00:00
martinlanghoff 0146bd4190 blocks/admin_tree: Show the block if some admin privs present...
Dan Poltawski said:
> Previously users with different permissions could have granular
> access to the admin menu for the items they have access to, so
> limiting to only users with moodle/site:config would break that.
> Although I agree that that menu is slowww to render and needs
> fixing. Perhaps permissions for the various elements could be
> gathered and checked first

This commit addresses the problem checking for all the caps that are
mentioned by code in /admin (according to grep, at least). Some light
testing with the "moodle/user:create" seems to work properly.

This burdens us with maintaining the list in has_admin_caps() -- less
than ideal, but easier than rewriting /admin.
2007-09-19 07:46:24 +00:00
martinlanghoff 84a34f6ed3 blocks/admin_tree: exit early for non-admins
Saves >10DBq and 18 includes at the homepage for all nonadmin users.
For non admin users, this makes the homepage _much_ more lightweight.

  Before: inc 101  DBq 51 time 1.2s
  After:  inc  76  DBq 36 time 0.2s

So this commit shaves 1 full second for the non-logged-in homepage.

Still pretty bad on the includes, but shaved a good 25 files and 15 DBqs.
2007-09-19 07:22:24 +00:00
skodak 18ff5a61b6 MDL-11230 fixing wrong include for tags library - always use require_once() instead of include() when dealing with library files! 2007-09-16 21:43:08 +00:00
skodak ffc536af8e MDL-7380 converted various places to use new groups API 2007-09-08 20:53:05 +00:00
skodak d9bf198292 MDL-10939 converting news_item block too 2007-09-07 09:43:14 +00:00
nfreear 77d574a8c5 SQL: Added 't.rawname' to GROUP BY clause following warning 2007-09-06 11:30:53 +00:00
toyomoyo 15e3eb6053 merged fix for MDL-9613, spliting the queries into 2 for site/course block respectively 2007-09-06 06:25:40 +00:00
poltawski 325744cb14 MDL-9851 - RSS block links previously used to open in new window. Restoring this
behaviour. Had to tweak the cleaning to ensure the JS hack for XHTML complaint new
window gets through. Merged from MOODLE_18_STABLE
2007-09-03 10:26:44 +00:00
moodler cdcaa9f2d3 This block can be anywhere 2007-08-31 04:58:03 +00:00
toyomoyo 81c07f5ebf admins should see all tags 2007-08-31 02:17:42 +00:00
toyomoyo 84895c5321 fixing timewithin login 2007-08-31 02:06:24 +00:00
toyomoyo 93bbdd5031 making blogs respect global tags flag 2007-08-30 09:13:36 +00:00
toyomoyo d92e2906cc MDL-11054, removing dead links 2007-08-30 01:45:38 +00:00
moodler d726e8c948 Fixed a mistaken checkin (never copy the CVS directory!) :-) 2007-08-28 08:48:00 +00:00
moodler d797e50f78 New tags block 2007-08-28 08:43:11 +00:00
moodler 42cc453778 Added new tags block for all tags 2007-08-28 06:38:21 +00:00
moodler 4c43863561 Display tags as raw names 2007-08-27 09:51:27 +00:00
toyomoyo bd1f4559f7 MDL-10956, convert blogs to use the same tags (and convert old tags) 2007-08-27 08:46:00 +00:00
skodak b286b86097 MDL-11004 missing capability check in main manu block on the frontpage 2007-08-26 15:58:48 +00:00
skodak b571c6b37b MDL-10995 eliminated some get course record calls - reused $COURSE instead 2007-08-26 08:24:50 +00:00
moodler 3a59bfd1e0 Moved cache directory for flickr and youtube stuff 2007-08-24 03:44:31 +00:00
moodler dd8f4910ed Hide role assign button from pinned blocks (always) MDL-9723 2007-08-24 02:17:28 +00:00
moodler 57a260d9a5 New key MDL-10953 2007-08-22 16:40:41 +00:00
poltawski 25a7d98066 MDL-10573 - moodle/block:view wasn't working with switch roles or block_list class 2007-08-22 10:35:28 +00:00
Martin Langhoff 13534ef716 cvsimport fixups 2007-08-29 13:10:11 +12:00
tjhunt 2a4e13c5e7 MDL-10894 - Make block add/remove and edit permissions more consistent 2007-08-17 13:07:23 +00:00
nicolasconnault 73c24ef80b MDL-10870 All files updated to new build_navigation() method. 2007-08-16 15:01:25 +00:00
skodak 5bf243d131 MDL-10383 - groups/groupings refactoring nearly finished ;-) 2007-08-16 11:06:48 +00:00
moodler 2150fe08e8 Fix some XHTML and untranslated text 2007-08-16 07:42:28 +00:00
moodler 63ddad295a Fixed some XHTML problems 2007-08-16 07:29:27 +00:00
skodak 2c386f82e5 MDL-10383 - deprecated get_groups(), user_group() and ismember() 2007-08-15 20:21:01 +00:00
skodak 1d68419596 MDL-10383 - deprecated groups_members_from_sql and friends - we do not need them anymore because we reverted to 1.7 style groups in 1.9 2007-08-15 19:28:11 +00:00
poltawski 7e874772a3 MDL-10573 - Added a capability for viewing blocks, this allows role-based control of block
display.

Changed context capability check so that CONTEXT_BLOCK capabilities can also come from the
moodle core capability definitions
2007-08-13 10:08:15 +00:00
moodler e3a1ea05b7 Fixes for XHTML Strict 1.0 2007-08-13 06:28:08 +00:00
moodler e62950cacc Fixed some XHTML issues 2007-08-13 06:17:54 +00:00
luizlaydner d4c603dbbd - removed simplexml from youtube block, now using another parsing library 2007-08-13 04:05:55 +00:00
toyomoyo b4191a358f missing a ?> 2007-08-13 02:57:05 +00:00
toyomoyo 32fe29c7f3 MDL-10821, making configdata nullable 2007-08-13 02:38:10 +00:00