Skip to content

Refactored item_Model::get_position() as an item helper and fixed viewable() related issues#23

Closed
jersub wants to merge 2 commits into
gallery:masterfrom
jersub:fix-viewable2_master
Closed

Refactored item_Model::get_position() as an item helper and fixed viewable() related issues#23
jersub wants to merge 2 commits into
gallery:masterfrom
jersub:fix-viewable2_master

Conversation

@jersub

@jersub jersub commented Jan 11, 2011

Copy link
Copy Markdown
Contributor

Hi,

This is a pull alternative to the previous one: Fix item_Model::get_position() and item controllers.

As bharat suggested, this is far cleaner to refactor item_Model::get_position() as an item helper. However, a backward compatibility has been kept.

Now it's possible to use a third-party module, as "hide", that can alter gallery's original permission policy.
Past related issues have been reported in the "hide" thread : http://gallery.menalto.com/node/97962

Request for comments/pull!

Regards,
Jeremy

Jérémy Subtil added 2 commits January 9, 2011 12:14
…y, when some other items belonging to the same parent album are not viewable.

Changed depracated calls to item_Model::get_position() to item::get_position().
@bharat

bharat commented Jan 11, 2011

Copy link
Copy Markdown
Member

This looks awesome. Great work.. pulling it now.

@jersub

jersub commented Jan 12, 2011

Copy link
Copy Markdown
Contributor Author

Thanks a lot bharat! ;)

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants