JoryHogeveen / view-admin-as

View the WordPress admin as a different role, switch between users, temporarily change your capabilities, set default screen settings for roles, manage your roles and capabilities.
https://wordpress.org/plugins/view-admin-as/
GNU General Public License v2.0
45 stars 3 forks source link

Compatibility with Pantheon in Git mode #129

Open tamala73 opened 1 year ago

tamala73 commented 1 year ago

Description

Using Pantheon as our WebOps platform.

When in SFTP mode the plugin works well. I am able to mimic a user from another role or a specific user within the WordPress site.

SFTP-MODE

If I change the mode in Pantheon to Git mode or in Production where Pantheon's workflow disables write access the plugin does not work. It does not display the 'View As' menu item in the Admin Bar.

GIT-MODE

https://docs.pantheon.io/symlinks-assumed-write-access

Specifications

Accessibility by UserWay - 2.5.0 ACF Content Analysis for Yoast SEO - 3.0.1 Add From Server - 3.4.5 Admin Menu Editor - 1.10.4 Advanced Custom Fields PRO - 5.12.3 Auto Image Attributes From Filename With Bulk Updater - 4.1 Auto Image Attributes Pro - 4.1 Classic Editor - 1.6.2 Custom Post Type UI - 1.13.4 DE Case Insensitive Url - 0.9 DE Elementor Widgets - 1.0.0 Disable Yoast SEO Redirects - 1.0.0 Elementor - 3.11.5 Elementor Pro - 3.11.1 ElementsKit Lite - 2.8.5 ElementsKit Pro - 3.1.0 Enable Media Replace - 4.0.3 Fonts Plugin | Google Fonts Typography - 3.3.7 Freesoul Deactivate Plugins - 1.9.5.5 Hummingbird Pro - 3.4.3 miniOrange SAML SSO Multiple IDP - 25.0.8 Modern Events Calendar - 6.8.10 MU Pantheon Cache Exceptions - 0.1 MU WP Native PHP Sessions - 0.1 Ninja Forms - 3.6.19 Ninja Forms - Addon Manager - 3.0.13 Ninja Forms - Conditional Logic - 3.1 Ninja Forms - File Uploads - 3.3.14 Ninja Forms - Layout & Styles - 3.0.29 Ninja Forms - Multi-Part Forms - 3.0.26 Ninja Forms - Webhooks - 3.0.5 Pantheon Advanced Page Cache - 1.2.1 Pantheon MU Plugin Loader - 1.0 Permissions Editor for Ninja Forms - 1.2.1 Popup Maker - 1.18.1 Quick Featured Images - 13.7.0 Redirection - 5.3.9 Relevanssi - 4.18.3 Simple CSS - 1.1.1 Simple Custom CSS and JS PRO - 4.29 Smush Pro - 3.12.6 Timed Content - 2.76 View Admin As - 1.8.8 Widget Detector for Elementor - 1.2.5 WP Mail SMTP Pro - 3.6.1 WP Offload Media - 3.0.2 WP Sitemap Page - 1.9.1 WP-CFM - 1.7.5 WP-PageNavi - 2.94.0 WPMU DEV Dashboard - 4.11.18 WPS Hide Login - 1.9.8 Yoast Duplicate Post - 4.5 Yoast SEO - 20.3 Yoast SEO Premium - 18.9 Yoast SEO: Video - 14.6 Yoast Test Helper - 1.17

JoryHogeveen commented 1 year ago

Hi @tamala73

Can you explain to me what Git mode does exactly? It seems to be that this plugin simply isn't loaded in Git mode.

Edit Addition: This plugin doesn't require write access to anything other than that database. It also relies on WP core functions like plugin_dir_path and plugin_dir_url.

Cheers, Jory

tamala73 commented 1 year ago

Using Pantheon you have two ways to get to your files -- through SFTP or GIT modes. GIT mode locks down the site so you are not able to access files using SFTP only through commits and pushes via GIT.

Interesting that the menu option is not available then, I may need to contact Pantheon support to see if they have any additional info that maybe I can provide to you.