Merge pull request #790 from umbraco/U4-7075

Fixes: U4-7075 Enable Content and Media section by default for new ba…
This commit is contained in:
Claus Jensen
2015-10-12 14:46:28 +02:00
2 changed files with 11 additions and 6 deletions

View File

@@ -146,6 +146,9 @@ namespace Umbraco.Core.Services
IsLockedOut = false,
IsApproved = true
};
//adding default sections content and media
user.AddAllowedSection("content");
user.AddAllowedSection("media");
if (SavingUser.IsRaisedEventCancelled(new SaveEventArgs<IUser>(user), this))
return user;