1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00

Fix issue processwire/processwire-issues#1136 plus some other minor unrelated adjustments

This commit is contained in:
Ryan Cramer
2020-07-30 15:45:44 -04:00
parent 7503ecd781
commit b855b1f6f5
5 changed files with 6 additions and 4 deletions

View File

@@ -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
*
* @var FieldsArray|null
*
*/
protected $removedFields = null;

View File

@@ -10,7 +10,7 @@ if(!defined("PROCESSWIRE_INSTALL")) die();
<!-- FOOTER -->
<footer id='pw-footer' class='uk-margin'>
<div class='pw-container uk-container uk-container-center'>
<p>ProcessWire 3.x &copy; 2019</p>
<p>ProcessWire 3.x &copy; 2020</p>
</div>
</footer>

View File

@@ -207,7 +207,7 @@ function pwModalWindow(href, options, size) {
function updateWindowSize() {
var width = jQuery(window).width();
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;
if(width <= 960 && size != 'full' && size != 'large') _size = 'large';
if(width <= 700 && size != 'full') _size = 'full';

File diff suppressed because one or more lines are too long

View File

@@ -558,7 +558,7 @@ class PagePermissions extends WireData implements Module {
} else if($user->isSuperuser()) {
// superuser always allowed
$viewable = true;
} else if($page->process) {
} else if($page->hasField('process') && $page->get('process')) {
// delegate access to permissions defined with Process module
$viewable = $this->processViewable($page);
} else if($page instanceof User && !$user->isGuest() && ($user->hasPermission('user-admin') || $page->id === $user->id)) {