projects
/
dotclear.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix perms problems in xorgAuth
[dotclear.git]
/
class.xorg.auth.php
diff --git
a/class.xorg.auth.php
b/class.xorg.auth.php
index
d593724
..
675e5d9
100644
(file)
--- a/
class.xorg.auth.php
+++ b/
class.xorg.auth.php
@@
-224,10
+224,10
@@
class xorgAuth extends dcAuth {
public function userID() {
$this->buildFromSession();
public function userID() {
$this->buildFromSession();
- $isadmin = preg_match('@/admin/[^/]+\.php$@i', $_SERVER['SCRIPT_FILENAME']);
- if (!$isadmin) {
- return null;
- }
+
//
$isadmin = preg_match('@/admin/[^/]+\.php$@i', $_SERVER['SCRIPT_FILENAME']);
+
//
if (!$isadmin) {
+
//
return null;
+
//
}
return parent::userID();
}
return parent::userID();
}
@@
-240,7
+240,7
@@
class xorgAuth extends dcAuth {
$this->buildFromSession();
if ($n == 'xorg_group_member') {
global $core;
$this->buildFromSession();
if ($n == 'xorg_group_member') {
global $core;
- if ($core->blog->settings('xorg_blog_owner') != $_SESSION['xorg-group']) {
+ if ($core->blog->settings
->get
('xorg_blog_owner') != $_SESSION['xorg-group']) {
return false;
}
$perm = $this->xorg_infos['grpauth'];
return false;
}
$perm = $this->xorg_infos['grpauth'];