Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… access where it shouldn't."

This reverts commit 733b77a.
  • Loading branch information...
commit d3200ab4c7a4124244102f32dcecbddd20533c8e 1 parent 7220cd7
@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
@@ -29,5 +29,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.