Permalink
Browse files

MINOR can always create top level if admin (from r100511)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105588 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent a1d9d8b commit 593448929a93c0f4dd76f0bdf698c16a84645e50 @chillu chillu committed May 25, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 core/model/SiteConfig.php
@@ -260,6 +260,8 @@ public function canCreateTopLevel($member = null) {
if(!$member || !(is_a($member, 'Member')) || is_numeric($member)) {
$member = Member::currentUserID();
}
+
+ if (Permission::check('ADMIN')) return true;
// check for any logged-in users
if($this->CanCreateTopLevelType == 'LoggedInUsers' && $member) return true;

0 comments on commit 5934489

Please sign in to comment.