Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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: 7220cd79e883
...
head fork: mantisbt/mantisbt
compare: 8b655d381e85
Checking mergeability… Don't worry, you can still create the pull request.
  • 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 733b77a.
d3200ab
@vboctor vboctor Revert "Fixes #16573: mc_projects_get_user_accessible requires read/w…
…rite api access where it shouldn't."

This reverts commit b4131c9.
8b655d3
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
@@ -138,6 +138,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
@@ -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 );
}

No commit comments for this range

Something went wrong with that request. Please try again.