From 508830ec38b405557d93b50b9be1133fb38902e4 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Tue, 2 Oct 2007 04:30:20 +0000 Subject: [PATCH] Use permission code (merged from 2.1.0 branch, r41533) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42908 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/BasicAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');