Skip to content

Commit

Permalink
Revert "Fixes #16572: mc_user_pref_get_pref() requires read/write api…
Browse files Browse the repository at this point in the history
… access where it shouldn't."

This reverts commit d2ea74c.
  • Loading branch information
vboctor committed Nov 3, 2013
1 parent b4131c9 commit afe29c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/soap/mc_user_pref_api.php
Expand Up @@ -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(); 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 ); return user_pref_get_pref( $t_user_id, $p_pref_name, $p_project_id );
} }

0 comments on commit afe29c5

Please sign in to comment.