Custom Settings Pages should support specifying a capability for access #7245
Labels
Keyword: Good First Issue
New contributors are encouraged to try helping on this
Status: Help Wanted
We have not prioritized this yet, but you can help make it happen to speed it up
Type: Enhancement
Enhancements to features that already exist, but are not major additions
Milestone
Problem to Solve
Right now, you must have access as a Pods admin (caps:
pods
,pods_content
, orpods_edit_{pod_name}
).It would be great to override what capability check(s) are used for the Custom Settings Pages specifically.
Proposed Solution
Add a new option to the Pod edit screen for Settings pods so that you can choose from these capabilities:
Possible Workaround
Todos
PodsAdmin::admin_menu()
pods/classes/PodsAdmin.php
Line 477 in 08d1c6a
\Pods\Admin\Config\Pod::get_fields()
for Settings pods:capability_type
andcapability_type_custom
The text was updated successfully, but these errors were encountered: