Issue Details (XML | Word | Printable)

Key: MDL-11563
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Petr Skoda
Reporter: Petr Skoda
Votes: 0
Watchers: 2
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle
MDL-11561

replace hardcoded permission check from admin_tree_block

Created: 03/Oct/07 03:56 AM   Updated: 29/Oct/07 06:37 AM
Return to search
Component/s: Administration
Affects Version/s: 1.9
Fix Version/s: 1.9

Issue Links:
Duplicate
 

Participants: Petr Skoda
Security Level: None
Resolved date: 29/Oct/07
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_19_STABLE


 Description  « Hide
it is fast, but it breaks 3rd party extensions, frontpage editting, etc.
solution: add has_capability test to files in admin/settings/; one big simple if (has_capability() or has_capability())
each settings file can decide what to do; the speed should be nearly the same - includes some 10 more file + some has_capability() calls


 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Skoda added a comment - 29/Oct/07 06:37 AM
committed into cvs