X7ROOT File Manager
Current Path:
/home/hamdjcne/public_html/wp-content/plugins/mediavine-create/lib
home
/
hamdjcne
/
public_html
/
wp-content
/
plugins
/
mediavine-create
/
lib
/
ðŸ“
..
ðŸ“
Exceptions
ðŸ“
api
📄
autoloader-pro.php
(28 B)
📄
class-admin-notices.php
(2.47 KB)
📄
class-api-services.php
(9.23 KB)
📄
class-cache-manager.php
(1.99 KB)
📄
class-custom-content.php
(6.57 KB)
📄
class-data-sync.php
(5.35 KB)
📄
class-permissions.php
(980 B)
📄
class-publish.php
(24.27 KB)
📄
class-restore.php
(3.95 KB)
📄
class-view-loader.php
(7.88 KB)
ðŸ“
creations
ðŸ“
db-interface
📄
feature-flags.php
(681 B)
📄
functions-feature-flags.php
(748 B)
📄
functions-version-check.php
(9.46 KB)
📄
functions.php
(5.36 KB)
ðŸ“
helpers
📄
helpers.php
(631 B)
ðŸ“
i18n
ðŸ“
images
ðŸ“
importer-compatibility
📄
index.php
(28 B)
ðŸ“
json-ld
ðŸ“
nutrition
ðŸ“
product-maps
ðŸ“
products
ðŸ“
relations
ðŸ“
reviews
ðŸ“
revisions
ðŸ“
settings
ðŸ“
settings-group
ðŸ“
shapes
ðŸ“
supplies
ðŸ“
views
Editing: class-permissions.php
<?php namespace Mediavine; class Permissions { public static function is_user_authorized( $api = null ) { $user = wp_get_current_user(); $user_role_setting = \Mediavine\Settings::get_settings( 'mv_create_default_access_role' . $user->ID ); if ( ! empty( $user_role_setting ) ) { return current_user_can( $user_role_setting->value ); } $user_role_setting = \Mediavine\Settings::get_settings( 'mv_create_default_access_role' ); if ( ! empty( $user_role_setting ) ) { return current_user_can( $user_role_setting->value ); } return current_user_can( 'publish_posts' ); } public static function access_level() { if ( mv_create_table_exists( 'mv_settings' ) ) { $Settings = new MV_DBI( 'mv_settings' ); $user_role_setting = $Settings->find_one( [ 'col' => 'slug', 'key' => 'mv_create_default_access_role', ] ); if ( $user_role_setting ) { return $user_role_setting->value; } } return 'publish_posts'; } }
Upload File
Create Folder