Project

General

Profile

Actions

Bug #776

closed

addinstrument.php can not access the function is_logged() without Login_Enabled

Added by Anchi Cheng almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
High
Assignee:
Amber Herold
Category:
-
Start date:
07/26/2010
Due date:
% Done:

100%

Estimated time:
Affected Version:
Appion/Leginon 2.0.2
Show in known bugs:
No
Workaround:

Description

Something has changed recently that made dbemauth not loaded when this page is loaded.

Error message: Call to a member function is_logged() on a non-object in .../myamiweb/addinstrument.php on line 4

Actions #1

Updated by Anchi Cheng almost 14 years ago

  • Status changed from Assigned to In Code Review
  • Assignee changed from Anchi Cheng to Eric Hou
  • % Done changed from 0 to 100

Fixed it by requiring once dbemauth.php regardless of LOGIN_ENABLE since most functions in login.inc need it.

Actions #2

Updated by Eric Hou almost 14 years ago

  • Status changed from In Code Review to In Test
  • Assignee changed from Eric Hou to Amber Herold

The fixed is good for now. We might need to consider to check the privilege level during the login system, then we don't need to check privilege on every pages.

Thanks.

Eric

Actions #3

Updated by Amber Herold almost 14 years ago

  • Status changed from In Test to Closed
  • Target version set to Appion/Leginon 2.1.0
Actions

Also available in: Atom PDF