Skip to content

Commit

Permalink
Updated Redux to 3.3.9.4. Changed access rights for viewing mails to …
Browse files Browse the repository at this point in the history
…capabilities instead of roles.
  • Loading branch information
No3x committed Nov 22, 2014
1 parent 2bd47a6 commit eced53a
Show file tree
Hide file tree
Showing 92 changed files with 13,432 additions and 9,488 deletions.
2 changes: 1 addition & 1 deletion WPML_LifeCycle.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function install() {
public function uninstall() {
$this->otherUninstall();

if( $this->getSetting('delete-on-deactivation', false) == 'true' ) {
if( $this->getSetting('delete-on-deactivation', false) == true ) {
//TOOD: is multi site?
$this->unInstallDatabaseTables();
$this->deleteSavedOptions();
Expand Down
2 changes: 1 addition & 1 deletion WPML_OptionsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ function save_screen_options( $status, $option, $value ) {
public function LogMenu() {
global $wp_version;

if ( !$this->isUserRoleEqualOrBetterThan( $this->getSetting( 'can-see-submission-data', 'Administrator' ) ) ) {
if ( !current_user_can( $this->getSetting( 'can-see-submission-data', 'manage_options' ) ) ) {
wp_die(__('You do not have sufficient permissions to access this page.', 'wpml'));
}

Expand Down
3 changes: 2 additions & 1 deletion inc/redux/options-init.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ public function setSections() {
array(
'id' => 'can-see-submission-data',
'type' => 'select',
'data' => 'roles',
'data' => 'capabilities',
'default' => 'manage_options',
'title' => __('Can See Submission data', 'wpml'),
'subtitle' => __('Select the minimum role.', 'wpml'),

Expand Down
1 change: 0 additions & 1 deletion inc/redux/redux-framework/.tx/config
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[main]
host = https://www.transifex.com
//lang_map = en_US: en, el: el-GR, de: de-DE, fr: fr_FR

[redux-framework.redux-framework]
file_filter = ReduxCore/languages/<lang>.po
Expand Down
575 changes: 341 additions & 234 deletions inc/redux/redux-framework/Gruntfile.js

Large diffs are not rendered by default.

Loading

0 comments on commit eced53a

Please sign in to comment.