Flyspray

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Backend/Core
  • Assigned To No-one
  • Operating System All
  • Severity High
  • Priority Very Low
  • Reported Version 1.0-rc
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Flyspray
Opened by thess - 02.06.2016
Last edited by peterdd - 29.06.2016

FS#2130 - Admin cannot change own password

Error message “No Old Password was set” returned when trying to update password even though none was required - UI fixed but modify.inc.php still fails.

Closed by  peterdd
29.06.2016 03:14
Reason for closing:  Fixed in devel
thess commented on 02.06.2016 21:09

Possible fix (not thoroughly tested)

diff --git a/includes/modify.inc.php b/includes/modify.inc.php
index dbf764c..e468e0a 100644
--- a/includes/modify.inc.php
+++ b/includes/modify.inc.php
@@ -1372,7 +1372,7 @@ switch ($action = Req::val('action'))
                     break;
                 }
 
-                if ( (!$user->perms('is_admin') || $user->id == Post::val('user_id')) && !Post::val('oldpass')
+                if ( (!$user->perms('is_admin') && $user->id == Post::val('user_id')) && !Post::val('oldpass')
                 && (Post::val('changepass') || Post::val('confirmpass')) ) {
                     Flyspray::show_error(L('nooldpass'));
                     break;

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing