Issue Details (XML | Word | Printable)

Key: MDL-15310
Type: Sub-task Sub-task
Status: Open Open
Priority: Major Major
Assignee: Mathieu Petit-Clair
Reporter: Mathieu Petit-Clair
Votes: 0
Watchers: 0
Operations

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

transfer capability checks from tagging library to calling scripts

Created: 19/Jun/08 09:27 AM   Updated: 20/Jun/08 09:47 AM
Return to search
Component/s: Blog, Tags
Affects Version/s: 2.0
Fix Version/s: 2.0

Participants: Mathieu Petit-Clair and Petr Skoda
Security Level: None
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
/tag and /blog are in need of a cleanup : there are still capability checks done in tag/lib.php (which should be done in the calling scripts), some code hasn't been adjusted following the (pre-1.9) tag library changes (capabilities not taken into account, not using the api, etc.) and there are quite a few unused variables.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Skoda added a comment - 20/Jun/08 03:53 AM
hmm, I thought there the tag:create is meant for adding of new tags, and that somehow the "suing" of tags is separate - the change in user profile effectively disables just using of existing tags, because add is always required, right?

Mathieu Petit-Clair added a comment - 20/Jun/08 09:47 AM
This is a good point, but unless we improve this interface to make obvious (à la del.icio.us?) the tags that already exists, it's not really a good idea to only set the existing ones while we disregard the new ones. The "official" tags box is as close as we get to this with the current implementation. Anything else will need some ajax-ification to be easy to use.