Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: mantisbt/mantisbt
base: b4131c921c48
...
head fork: mantisbt/mantisbt
compare: 2c647fcea07f
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on Nov 03, 2013
@vboctor vboctor Revert "Fixes #16572: mc_user_pref_get_pref() requires read/write api…
… access where it shouldn't."

This reverts commit d2ea74c.
afe29c5
@vboctor vboctor Revert "Fixes #16573: mc_projects_get_user_accessible requires read/w…
…rite api access where it shouldn't."

This reverts commit b4131c9.
2c647fc
Showing with 8 additions and 0 deletions.
  1. +4 −0 api/soap/mc_project_api.php
  2. +4 −0 api/soap/mc_user_pref_api.php
View
4 api/soap/mc_project_api.php
@@ -129,6 +129,10 @@ function mc_projects_get_user_accessible( $p_username, $p_password ) {
return mci_soap_fault_login_failed();
}
+ if( !mci_has_readonly_access( $t_user_id ) ) {
+ return mci_soap_fault_access_denied( $t_user_id );
+ }
+
$t_lang = mci_get_user_lang( $t_user_id );
$t_result = array();
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 );
}

No commit comments for this range

Something went wrong with that request. Please try again.