From b836bc782522fe9b6a73ad664361b1f19c90679d Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Sat, 26 Apr 2008 06:36:23 +0000 Subject: [PATCH] Merged revisions 52933 via svnmerge from http://svn.silverstripe.com/open/modules/sapphire/branches/govtsecurity ........ r52933 | sminnee | 2008-04-17 18:37:21 +1200 (Thu, 17 Apr 2008) | 1 line ImageUploader fields are accessible by CMS_ACCESS_CMSMain, rather than ADMIN ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@53493 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/model/Image.php b/core/model/Image.php index 8e8de3871..1b3e3ff51 100755 --- a/core/model/Image.php +++ b/core/model/Image.php @@ -451,7 +451,7 @@ class Image_Uploader extends Controller { * Ensures the css is loaded for the iframe. */ function iframe() { - if(!Permission::check('ADMIN')) Security::permissionFailure($this); + if(!Permission::check('CMS_ACCESS_CMSMain')) Security::permissionFailure($this); Requirements::css("cms/css/Image_iframe.css"); return array();