mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-04 12:09:08 -04:00
Require view_full to print photos.
This commit is contained in:
@@ -22,6 +22,7 @@ class Digibug_Controller extends Controller {
|
||||
access::verify_csrf();
|
||||
|
||||
$item = ORM::factory("item", $id);
|
||||
access::required("view_full", $id);
|
||||
|
||||
$proxy = ORM::factory("digibug_proxy");
|
||||
$proxy->uuid = md5(rand());
|
||||
|
||||
@@ -23,7 +23,8 @@ class digibug_theme_Core {
|
||||
}
|
||||
|
||||
static function thumb_bottom($theme, $child) {
|
||||
if ($theme->page_type() == "album" && $child->type == "photo") {
|
||||
if ($theme->page_type() == "album" && $child->type == "photo" &&
|
||||
access::can("view_full", $child)) {
|
||||
$v = new View("digibug_album.html");
|
||||
$v->id = $child->id;
|
||||
$v->title = t("Print photo with Digibug");
|
||||
|
||||
Reference in New Issue
Block a user