mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-26 01:34:09 -04:00
Added access check - not really necesssary because we're only doing a
redirect, but it's nice to be consistent. Follow-on for #1837.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
class Image_Block_Controller extends Controller {
|
||||
public function random($item_id) {
|
||||
$item = ORM::factory("item", $item_id);
|
||||
access::required("view", $item);
|
||||
item::set_display_context_callback("Albums_Controller::get_display_context");
|
||||
url::redirect($item->abs_url());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user