summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/viewutil.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/viewutil.cxx')
-rw-r--r--sc/source/ui/view/viewutil.cxx14
1 files changed, 2 insertions, 12 deletions
diff --git a/sc/source/ui/view/viewutil.cxx b/sc/source/ui/view/viewutil.cxx
index c5bca8dec8c2..144176759fb4 100644
--- a/sc/source/ui/view/viewutil.cxx
+++ b/sc/source/ui/view/viewutil.cxx
@@ -147,18 +147,8 @@ bool ScViewUtil::IsActionShown( const ScChangeAction& rAction,
if ( !rSettings.IsShowAccepted() && rAction.IsAccepted() && !rAction.IsRejecting() )
return false;
- if ( rSettings.HasAuthor() )
- {
- if ( rSettings.IsEveryoneButMe() )
- {
- // GetUser() at ChangeTrack is the current user
- ScChangeTrack* pTrack = rDocument.GetChangeTrack();
- if ( !pTrack || rAction.GetUser() == pTrack->GetUser() )
- return false;
- }
- else if ( rAction.GetUser() != rSettings.GetTheAuthorToShow() )
- return false;
- }
+ if ( rSettings.HasAuthor() && rAction.GetUser() != rSettings.GetTheAuthorToShow() )
+ return false;
if ( rSettings.HasComment() )
{