diff --git a/security/BasicAuth.php b/security/BasicAuth.php index 7157a5df5..063176343 100755 --- a/security/BasicAuth.php +++ b/security/BasicAuth.php @@ -33,7 +33,7 @@ class BasicAuth extends Object { die(); } - if(!Permission::checkMember($member->ID, 'ADMIN')) { + if(!Permission::checkMember($member->ID, $permissionCode)) { header("WWW-Authenticate: Basic realm=\"$realm\""); header('HTTP/1.0 401 Unauthorized');