Project

General

Profile

Bug #1308

Not possible to access main URL

Added by Yannick Warnier over 9 years ago. Updated over 8 years ago.

Status:
Bug resolved
Priority:
Normal
Category:
-
Target version:
Start date:
19/05/2010
Due date:
% Done:

90%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
3

Description

When enabling multiple-access URLs and logging out without doing anything else, it is impossible to log back in in any new URL (including the main one).

Make a change to the login code to enable the main URL's admins to log into any URL (the first one should always be considered the root URL).

History

#1

Updated by Julio Montoya over 9 years ago

  • Assignee set to Julio Montoya
#2

Updated by Julio Montoya over 9 years ago

  • Status changed from New to Bug resolved
  • Assignee changed from Julio Montoya to Curt Ricardo Rodriguez Salazar
  • % Done changed from 0 to 90

All admins can login in all multiple URLs. Not necessary to be registered in the access_url_rel_user table.

Requires testing.

http://code.google.com/p/chamilo/source/detail?r=16d9df314dfeb954101b781f36d7c628f6beb6d4&repo=classic

#3

Updated by Yannick Warnier over 9 years ago

  • Status changed from Bug resolved to Assigned
  • Assignee changed from Curt Ricardo Rodriguez Salazar to Julio Montoya
  • % Done changed from 90 to 50
  • SCRUM pts - complexity changed from 2 to 3

Hello Julio,

I think you misunderstood.
Only global admins should be able to login to all portals.

A "global" admin is an administrator that has been declared admin on the first portal (portal ID 1, or A for the example), which is also the main administration portal.
All admins declared in portal B (=secondary admins) should not have access to portal A nor C.

Another point (that you can add here) is that a secondary admin should not be able to enter the "Manage multiple URLs" link in the admin page.

#4

Updated by Julio Montoya over 9 years ago

Ok so "Global Admins" = all admins that belongs to the "first" portal.
I'm going to change some code ...

#5

Updated by Julio Montoya over 9 years ago

That means the the main Chamilo installation will be always "1". (I mean the access_url_id) .

#6

Updated by Julio Montoya over 9 years ago

  • Status changed from Assigned to Needs more info
  • Assignee changed from Julio Montoya to Yannick Warnier
  • % Done changed from 50 to 90

I made the changes so:

  1. An admin that is related with the main site (access_url_id = 1) can access wherever he wants. (Global admin)
  2. A "normal" admin (admin in other sites but not in the main site) can't access to the first site and can't have access to the Multiple URl settings. But he CAN admin his own sites.

I added the api_is_global_platform_admin() and api_protect_global_admin_script() in main_api thos functions are going to help defining who is a global admin.

http://code.google.com/p/chamilo/source/detail?r=3c2f266dfffff8c61295fc29dfc590ccac56fd7b&repo=classic

Need feedback for this one...

#7

Updated by Yannick Warnier over 9 years ago

  • Assignee changed from Yannick Warnier to Julio Montoya

I'm OK with the rules you mention. Do you need testing on this, or did you already test it?
If you don't need testing, then you can close it. Otherwise assign it to Arthur (he will be testing the remaining bug fixes this Friday only).

#8

Updated by Julio Montoya over 9 years ago

  • Status changed from Needs more info to Needs testing
  • Assignee changed from Julio Montoya to Arthur Portugal

I already test it and it works, but he could test in a fresh Chamilo installation.

#9

Updated by Yannick Warnier over 8 years ago

  • Status changed from Needs testing to Bug resolved

Also available in: Atom PDF