mirror of
https://github.com/processwire/processwire.git
synced 2025-08-27 00:25:05 +02:00
Fix issue processwire/processwire-issues#570 where InputfieldImage in a Repeater item, crop/focus/variations buttons didn't show to non-superusers
This commit is contained in:
@@ -210,6 +210,10 @@ class InputfieldImage extends InputfieldFile implements InputfieldItemList, Inpu
|
||||
$page = new NullPage();
|
||||
}
|
||||
}
|
||||
if(wireClassExists('RepeaterPage')) {
|
||||
/** @var RepeaterPage $page */
|
||||
while(wireInstanceOf($page, 'RepeaterPage')) $page = $page->getForPage();
|
||||
}
|
||||
if($page->id && $this->wire('user')->hasPermission('page-edit-images', $page)) {
|
||||
$modules->get('JqueryUI')->use('modal');
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user