summaryrefslogtreecommitdiff
path: root/modules/organize/helpers
AgeCommit message (Collapse)Author
2009-06-01Security pass over all controller code. Mostly adding CSRF checkingBharat Mediratta
and verifying user permissions, but there are several above-the-bar changes: 1) Server add is now only available to admins. This is a hard requirement because we have to limit server access (eg: server_add::children) to a user subset and the current permission model doesn't include that. Easiest fix is to restrict to admins. Got rid of the server_add permission. 2) We now know check permissions at every level, which means in controllers AND in helpers. This "belt and suspenders" approach will give us defense in depth in case we overlook it in one area. 3) We now do CSRF checking in every controller method that changes the code, in addition to the Forge auto-check. Again, defense in depth and it makes scanning the code for security much simpler. 4) Moved Simple_Uploader_Controller::convert_filename_to_title to item:convert_filename_to_title 5) Fixed a bug in sending notification emails. 6) Fixed the Organize code to verify that you only have access to your own tasks. In general, added permission checks to organize which had pretty much no validation code. I did my best to verify every feature that I touched.
2009-05-26Since organize is now in the preview stage and will probably beTim Almdal
rewritten by beta2, pull all of its "tenticles" back into itself and out of core or tags module.
2009-05-26Restructure the module lifecycle.Bharat Mediratta
Install: <module>_installer::install() is called, any necessary tables are created. Activate: <module>_installer::activate() is called. Module controllers are routable, helpers are accessible, etc. The module is in use. Deactivate: <module>_installer::deactivate() is called. Module code is not accessible or routable. Module is *not* in use, but its tables are still around. Uninstall: <module>_installer::uninstall() is called. Module is completely removed from the database. Admin > Modules will install and activate modules, but will only deactivate (will NOT uninstall modules).
2009-05-25Delete placeholder comments.Bharat Mediratta
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-05-02Create item helper and move move_item(), remove_album_cover() andBharat Mediratta
make_album_cover() functions into it.
2009-05-02Move make_album_cover and remove_album_cover out of Item_Model andBharat Mediratta
into the core helper. Clean up interactions so that when we remove an album cover we pick a new one, or clean out the old album cover if there are no other choices.
2009-05-02Clean up API to be organized around the functionality it provides, not the ↵Bharat Mediratta
feature its provided for.
2009-05-02Remove extra whitespace.Bharat Mediratta
2009-05-02Fix indentation.Bharat Mediratta
2009-04-29Refactor the creation and removal of the album covers intoTim Almdal
make_album_cover and remove_album_cover methods in Item_Model. Usage: $photo->make_album_cover() $album->remove_album_cover()
2009-04-29Change album cover functionality addedTim Almdal
2009-04-29The delete button now deletes the selected itemsTim Almdal
2009-04-281) Refactor the ajax calls so that the code is reused across multiplTim Almdal
request types. 2) Enable/Disable the drawer handle buttons depending on the number of items selcted 3) Image rotation works.
2009-04-221) Fix index overflow issue.Tim Almdal
2) Fix where the microthumb was removed even if the move was cancelled
2009-04-22Dragging from the thumbgrid to an album in the tree now works.Tim Almdal
Refactored the javascript to minimize duplication.
2009-04-21Added progress bar and pause and continue functionality to rearrangeTim Almdal
2009-04-20Remove debugging statementsTim Almdal
2009-04-201) Add rearrange processing as a taskTim Almdal
2) Improved drop location determination 3) Add a revert if dropped on an invalid target 4) Add a popup dialog to display ajax errors Still to do progress bar, pause/continue and status messages
2009-04-06Fix preambleBharat Mediratta
2009-04-03First iteration of the organize functionality (orginally called bulkTim Almdal
edit). There is limited functionality in no edits work. This is primary a chance for the team to review the ui. It is in a separate module to isolate the changes. Eventually, it will be moved back into core.