Browse Source
[FIX] always check the uid in the session and the one in the request to avoid session mismatch...
pull/34/head
[FIX] always check the uid in the session and the one in the request to avoid session mismatch...
pull/34/head
3 changed files with 42 additions and 15 deletions
-
1auth_from_http_remote_user/__init__.py
-
29auth_from_http_remote_user/controllers/main.py
-
27auth_from_http_remote_user/model.py
@ -0,0 +1,27 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################## |
||||
|
# |
||||
|
# Author: Laurent Mignon |
||||
|
# Copyright 2014 'ACSONE SA/NV' |
||||
|
# |
||||
|
# This program is free software: you can redistribute it and/or modify |
||||
|
# it under the terms of the GNU Affero General Public License as |
||||
|
# published by the Free Software Foundation, either version 3 of the |
||||
|
# License, or (at your option) any later version. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU Affero General Public License for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU Affero General Public License |
||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
from openerp.osv import orm |
||||
|
|
||||
|
|
||||
|
class AuthFromHttpRemoteUserInstalled(orm.AbstractModel): |
||||
|
"""An abstract model used to safely now if the module is installed |
||||
|
""" |
||||
|
_name = 'auth_from_http_remote_user.installed' |
Write
Preview
Loading…
Cancel
Save
Reference in new issue