Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "Fixes #16572: mc_user_pref_get_pref() requires read/write api…

… access where it shouldn't."

This reverts commit d2ea74c.
  • Loading branch information...
commit afe29c5fe71acd1422f2f699a96b6f31bbcbc264 1 parent b4131c9
@vboctor vboctor authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 api/soap/mc_user_pref_api.php
View
4 api/soap/mc_user_pref_api.php
@@ -21,5 +21,9 @@ function mc_user_pref_get_pref( $p_username, $p_password, $p_project_id, $p_pref
return mci_soap_fault_login_failed();
}
+ if ( !mci_has_readonly_access( $t_user_id ) ) {
+ return mci_soap_fault_access_denied( $t_user_id );
+ }
+
return user_pref_get_pref( $t_user_id, $p_pref_name, $p_project_id );
}
Please sign in to comment.
Something went wrong with that request. Please try again.