1. 01 Feb, 2009 1 commit
  2. 30 Jan, 2009 1 commit
  3. 18 Jan, 2009 2 commits
  4. 16 Jan, 2009 1 commit
  5. 14 Jan, 2009 1 commit
  6. 13 Jan, 2009 2 commits
  7. 09 Jan, 2009 1 commit
  8. 03 Jan, 2009 2 commits
  9. 31 Dec, 2008 1 commit
  10. 19 Dec, 2008 3 commits
  11. 17 Dec, 2008 1 commit
  12. 15 Dec, 2008 1 commit
    • tjhunt's avatar
      accesslib: MDL-17647, MDL-17648 and MDL-17649 Bug fix, improvement and unit test. · 212235d3
      tjhunt authored
      MDL-17647 was referring to moodle/site:candoanything insstead of moodle/site:doanything
      
      MDL-17648 Let get_users_by_capability take an array of capabilities, like has_any_capability
      
      MDL-17649 get_users_by_capability must have unit tests (HEAD only).
      
      The unit tests were briefly working (apart from the system context, which I had to set up by hand in the test contexts table). Then I made the mistake of trying to upgrade the test tables, and it all went horribly wrong (MDL-17644).
      212235d3
  13. 12 Dec, 2008 2 commits
  14. 10 Dec, 2008 1 commit
  15. 08 Dec, 2008 1 commit
    • tjhunt's avatar
      course categories: MDL-17502 when deleting a category and its contents, check... · 8a1b1c32
      tjhunt authored
      course categories: MDL-17502 when deleting a category and its contents, check moodle/course:delete capability.
      
      * Note: this would never lead to problems with default role definions.
      * Also ended up mostly rewriting delete_category_form to simplify the messages that are displayed.
      * New helper function require_all_capabilities, a bit like require_any_capability.
      8a1b1c32
  16. 04 Dec, 2008 1 commit
    • tjhunt's avatar
      course categories: Fix many bugs with category editing and permissions. Clean up code. · 8ed5dd63
      tjhunt authored
      Bugs: MDL-17479, MDL-16426, MDL-16063, MDL-16013, MDL-15658, MDL-15556, MDL-15161, MDL-14925, MDL-13742, MDL-11557.
      
      * Simplify category editing permissions to just moodle/category:manage and moodle/category:seehiddencategories.
      * Enforce those correctly. (Note MDL 17502 is still outstanding.)
      * Don't screw up category sort order when you just edit name or description.
      * Niceties like where redirects go when you cancel or submit forms.
      * Make sure a global course creator can see the site admin block.
      * Don't allow a category to be made the child of one of its children!
      * General code cleanup to bring key files more in line with best pracitice.
      
      Apologies for the fact it is one big patch, rather than a series of smaller patches. However, categoryedit.php, category.php and index.php where in pretty bad shape and needed significant cleaning up. categoryedit.php, in particular, was almost completely rewritten.
      
      Merged from MOODLE_19_STABLE.
      8ed5dd63
  17. 30 Nov, 2008 1 commit
  18. 28 Nov, 2008 1 commit
  19. 27 Nov, 2008 2 commits
  20. 25 Nov, 2008 2 commits
  21. 24 Nov, 2008 1 commit
  22. 21 Nov, 2008 2 commits
  23. 20 Nov, 2008 1 commit
    • tjhunt's avatar
      define roles: MDL-16966 etc. polishing the new roles UI following a meeting with Martin. · bed9cec8
      tjhunt authored
      * Move the show/hide advanced button a bit down the page.
      * Improve save button caption when creating a role.
      * Don't show defaults on the basic define roles screen.
      * Explain the background shading on the advanced roels screen.
      * Fix the problem with the risks link to Moodle docs.
      * Help icon by the permissions column heading.
      * Tables with rotated <th>s, make them vertical-align: bottom.
      * Rename explain.php and explainhascapability.php to check.php and explain.php
      * Tool tips on the number headers in the explain table.
      * Explain table - role names were missing.
      * Allow link_to_popup_window to work with full URLs.
      bed9cec8
  24. 19 Nov, 2008 1 commit
  25. 18 Nov, 2008 4 commits
  26. 14 Nov, 2008 1 commit
  27. 13 Nov, 2008 2 commits