Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private void MediaService_Saving(IMediaService sender,SaveEventArgs<IMedia> even
int _currentUserId;

using(var contextReference = _context.EnsureUmbracoContext()) {
_currentUserId = contextReference.UmbracoContext.Security.CurrentUser.Id;
_currentUserId = contextReference.UmbracoContext.Security.IsAuthenticated() ? contextReference.UmbracoContext.Security.CurrentUser.Id : Umbraco.Core.Constants.Security.SuperUserId;
}

using(var scope = _scopeProvider.CreateScope(autoComplete: true)) {
Expand Down Expand Up @@ -70,7 +70,7 @@ private void MediaService_Deleting(IMediaService sender,DeleteEventArgs<IMedia>
int _currentUserId;

using(var contextReference = _context.EnsureUmbracoContext()) {
_currentUserId = contextReference.UmbracoContext.Security.CurrentUser.Id;
_currentUserId = contextReference.UmbracoContext.Security.IsAuthenticated() ? contextReference.UmbracoContext.Security.CurrentUser.Id : Umbraco.Core.Constants.Security.SuperUserId;
}

using(var scope = _scopeProvider.CreateScope(autoComplete: true)) {
Expand Down Expand Up @@ -102,7 +102,7 @@ private void MediaService_Moving(IMediaService sender,MoveEventArgs<IMedia> even
int _currentUserId;

using(var contextReference = _context.EnsureUmbracoContext()) {
_currentUserId = contextReference.UmbracoContext.Security.CurrentUser.Id;
_currentUserId = contextReference.UmbracoContext.Security.IsAuthenticated() ? contextReference.UmbracoContext.Security.CurrentUser.Id : Umbraco.Core.Constants.Security.SuperUserId;
}

using(var scope = _scopeProvider.CreateScope(autoComplete: true)) {
Expand Down Expand Up @@ -134,7 +134,7 @@ private void MediaService_Trashing(IMediaService sender,MoveEventArgs<IMedia> ev
int _currentUserId;

using(var contextReference = _context.EnsureUmbracoContext()) {
_currentUserId = contextReference.UmbracoContext.Security.CurrentUser.Id;
_currentUserId = contextReference.UmbracoContext.Security.IsAuthenticated() ? contextReference.UmbracoContext.Security.CurrentUser.Id : Umbraco.Core.Constants.Security.SuperUserId;
}

using(var scope = _scopeProvider.CreateScope(autoComplete: true)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{
name: 'Protection',
alias: 'protection',
icon: 'icon-custom-account-balance-wallet',
icon: 'icon-lock',
view: backofficeView + 'protection.html',
active: true
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h4>General Information</h4>
<i class="icon-user color-orange"></i> indicate that there is a user exception.
</li>
<li>
<i class="icon-custom-pause-circle-fill color-red"></i> indicate that all nodes will be protected, regardless of the selection.
<i class="icon-block color-red"></i> indicate that all nodes will be protected, regardless of the selection.
</li>
</ul>
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<i class="icon-user color-orange"></i>
</div>
<div class="mp-status" title="Protect all node" ng-show="item.disableEvent">
<i class="icon-custom-pause-circle-fill color-red"></i>
<i class="icon-block color-red"></i>
</div>
</div>

Expand Down