Moodle

has_admin_caps() is not flexible

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 1.9
  • Fix Version/s: None
  • Component/s: Administration
  • Labels:
    None

Description

http://moodle.org/mod/forum/discuss.php?d=79455#p353667

I would prefer to see this calculated fully (and properly) at least once and then cached in the session as a boolean.

Issue Links

Activity

Hide
Martín Langhoff added a comment -

I've fixed up some variable naming inconsistencies, and added a bit of documentation to the beginning of accesslib to explain variable names and function name. While I didn't rename the _fad() functions, perhaps it helps

Show
Martín Langhoff added a comment - I've fixed up some variable naming inconsistencies, and added a bit of documentation to the beginning of accesslib to explain variable names and function name. While I didn't rename the _fad() functions, perhaps it helps

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: