Skip to content

Commit 78ea668

Browse files
committed
Update edit capability used for settings so it can be displayed on edit pod screen correctly
1 parent 147f658 commit 78ea668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/access.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ function pods_access_map_capabilities( array $args, ?int $user_id = null, bool $
528528
];
529529
} elseif ( 'settings' === $info['object_type'] ) {
530530
$capabilities['read'] = 'manage_options';
531-
$capabilities['edit'] = 'manage_options';
531+
$capabilities['edit'] = 'pods_edit_' . $info['object_name'];
532532
$capabilities['delete'] = 'manage_options';
533533

534534
// Fake the WP object for the logic below.

0 commit comments

Comments
 (0)