Always show the "Ban user" action link in th UserBrowsePane

git-svn-id: https://svn.libreccm.org/ccm/trunk@3769 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2015-12-14 08:48:15 +00:00
parent 948c7cb983
commit a5fd5899dc
1 changed files with 2 additions and 3 deletions

View File

@ -436,10 +436,9 @@ class UserBrowsePane extends SegmentedPanel
if (!super.isVisible(s)) {
return false;
}
// We show the ban link if the user is not already banned and has never published
// an item
// We show the ban link if the user is not already banned
User u = getUser(s);
return ((!u.isBanned()) && (hasUserPublishedItems(u)));
return ((!u.isBanned()));
}
};