mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 00:37:02 +02:00
Fix issue processwire/processwire-issues#1136 plus some other minor unrelated adjustments
This commit is contained in:
@@ -42,6 +42,8 @@ class Fieldgroup extends WireArray implements Saveable, Exportable, HasLookupIte
|
|||||||
/**
|
/**
|
||||||
* Any fields that were removed from this instance are noted so that Fieldgroups::save() can delete unused data
|
* Any fields that were removed from this instance are noted so that Fieldgroups::save() can delete unused data
|
||||||
*
|
*
|
||||||
|
* @var FieldsArray|null
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected $removedFields = null;
|
protected $removedFields = null;
|
||||||
|
|
||||||
|
@@ -10,7 +10,7 @@ if(!defined("PROCESSWIRE_INSTALL")) die();
|
|||||||
<!-- FOOTER -->
|
<!-- FOOTER -->
|
||||||
<footer id='pw-footer' class='uk-margin'>
|
<footer id='pw-footer' class='uk-margin'>
|
||||||
<div class='pw-container uk-container uk-container-center'>
|
<div class='pw-container uk-container uk-container-center'>
|
||||||
<p>ProcessWire 3.x © 2019</p>
|
<p>ProcessWire 3.x © 2020</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
@@ -207,7 +207,7 @@ function pwModalWindow(href, options, size) {
|
|||||||
function updateWindowSize() {
|
function updateWindowSize() {
|
||||||
var width = jQuery(window).width();
|
var width = jQuery(window).width();
|
||||||
var height = jQuery(window).height();
|
var height = jQuery(window).height();
|
||||||
if(width == lastWidth && height == lastHeight) return;
|
if((width == lastWidth && height == lastHeight) || !$iframe.hasClass('ui-dialog-content')) return;
|
||||||
var _size = size;
|
var _size = size;
|
||||||
if(width <= 960 && size != 'full' && size != 'large') _size = 'large';
|
if(width <= 960 && size != 'full' && size != 'large') _size = 'large';
|
||||||
if(width <= 700 && size != 'full') _size = 'full';
|
if(width <= 700 && size != 'full') _size = 'full';
|
||||||
|
2
wire/modules/Jquery/JqueryUI/modal.min.js
vendored
2
wire/modules/Jquery/JqueryUI/modal.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -558,7 +558,7 @@ class PagePermissions extends WireData implements Module {
|
|||||||
} else if($user->isSuperuser()) {
|
} else if($user->isSuperuser()) {
|
||||||
// superuser always allowed
|
// superuser always allowed
|
||||||
$viewable = true;
|
$viewable = true;
|
||||||
} else if($page->process) {
|
} else if($page->hasField('process') && $page->get('process')) {
|
||||||
// delegate access to permissions defined with Process module
|
// delegate access to permissions defined with Process module
|
||||||
$viewable = $this->processViewable($page);
|
$viewable = $this->processViewable($page);
|
||||||
} else if($page instanceof User && !$user->isGuest() && ($user->hasPermission('user-admin') || $page->id === $user->id)) {
|
} else if($page instanceof User && !$user->isGuest() && ($user->hasPermission('user-admin') || $page->id === $user->id)) {
|
||||||
|
Reference in New Issue
Block a user