MantisBT: master 74419508

Author Committer Branch Timestamp Parent
cproensa dregad master 2019-01-01 08:09 master 2ec8df69
Changeset

Refactor user_pref_api

Changes include:

  • Do not call database logic directly for the common use cases. Only
    special cases, like user or project delete, call directly to db
    functions.
  • Make account management pages operate explicitly on ALL_PROJECTS. We
    don't support per-project preferences over UI, but if those exists by
    manual creation, at least don't break them.
  • Add a way to skip checks for protected users, in some special cases
    core api should be able ti update those too.
mod - account_prefs_reset.php Diff File
mod - account_prefs_update.php Diff File
mod - core/project_api.php Diff File
mod - core/user_api.php Diff File
mod - core/user_pref_api.php Diff File