PODS_DISABLE_CONTENT_MENU adverse effect #6767
EthanPhoenix
started this conversation in
Ideas
Replies: 1 comment
-
is that something to look at @sc0ttkclark? never been in there :D ^^ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue Overview
Using:
define( 'PODS_DISABLE_CONTENT_MENU', true );
oradd_filter( 'PODS_DISABLE_CONTENT_MENU', '__return_false' );
and unchecking "Show Admin Menu in Dashboard" causes a “Sorry, you are not allowed to access this page.” error when accessing the Pod’s admin UI form (also via an “Add New” modal).See this post for more info.
Expected Behavior
The code should simply remove the additional "Pods" menu that is being created and not restrict the access to the pods.
In fact, the more extended expected behavior is that once "Show Admin Menu in Dashboard" is unchecked there shouldn't be any need to add any code to remove a secondary menu that is generated as a result of that (I believe it beats the purpose of what the checkbox is suppose to be doing).
Current Behavior
Using one of the aforementioned codes combined with unchecking "Show Admin Menu in Dashboard" results in “Sorry, you are not allowed to access this page.”
Possible Solution
PODS_DISABLE_CONTENT_MENU
should only remove the menu entry but not the rights to access the pods' UI.2 . When unchecking "Show Admin Menu in Dashboard" don't generate any kind of menu entry and leave the possibility to access the UI via an "Add New" or a self created link.
Steps to Reproduce (for bugs)
Pods Package Export (helpful!)
Related Issues and/or PRs
Todos
WordPress Environment
PHP Version: 7.0.28
MySQL Version: 5.7.21
Server Software: Apache
Your User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 OPR/52.0.2871.99
Session Save Path: C:/Bitnami/wordpress-4.9.5-0/php/tmp
Session Save Path Exists: Yes
Session Save Path Writeable: Yes
Session Max Lifetime: 1440
Opcode Cache:
Apc: No
Memcached: No
OPcache: Yes
Redis: No
Object Cache:
APC: No
APCu: No
Memcache: No
Memcached: No
Redis: No
WPDB Prefix: wp_
WP Multisite Mode: No
WP Memory Limit: 40M
Pods Network-Wide Activated: No
Pods Install Location: C:\Bitnami\wordpress-4.9.5-0\apps\wordpress\htdocs\wp-content\plugins\pods/
Pods Tableless Mode Activated: No
Pods Light Mode Activated: No
Currently Active Theme: Twenty Seventeen
Currently Active Plugins:
Ethan's Pods Addon: 0.0.1
Pods - Custom Content Types and Fields: 2.7.3```
Beta Was this translation helpful? Give feedback.
All reactions