Deuce Creative
Forum Replies Created
-
Forum: Plugins
In reply to: [WP eCommerce] PHP 7.2+ With Gold Cart AddonAwesome, many thanks Mark!
For anyone that comes across this post via Google, this might be helpful:
- This reply was modified 9 years, 5 months ago by Deuce Creative.
Forum: Plugins
In reply to: [ACF: TablePress] Logged in / Logged out issueJust to note that we also happened across this same issue today. Our solution was to use the following code snippet in the template to work for both options:
$tablepress_table = get_field( 'tablepress_table' ); if ( is_numeric( $tablepress_table ) ) { $args = array( 'id' => $tablepress_table ); if ( function_exists( 'tablepress_get_table' ) ) { $tablepress_table = tablepress_get_table( $args ); } } echo $tablepress_table;Hope that helps.
Forum: Plugins
In reply to: [WP eCommerce] goldcart / sagepay protocol 3I would also like to know when this will be available, as I have a client asking about it.
Many thanks.
Hi,
We came across this problem and found a better fix (for what I believe is a bug).
There is already a WPRMM_CAPABILITY definition setup in easy-restaurant-menu-manager.php, which is set to ‘edit_pages’ by default (i.e. the default Editor role would include this). This definition is used to check permissions for most functions, however it is *not* used in admin/crud-routing.php to check permissions for saving and deleting menus (which I believe it should).
So, a simple fix for this problem is simply to replace the following line 3:
if(!current_user_can('manage_options') || empty($_POST['wprmm_crud'])) wp_die('You do not have permission to modify this object.');with:
if(!current_user_can(WPRMM_CAPABILITY) || empty($_POST['wprmm_crud'])) wp_die('You do not have permission to modify this object.');This should fix the issue of Editor roles not being able to use the plugin correctly.
Regards,
Matt.