Skip to content

Commit

Permalink
Fixed PM tab showing to users without permission to use it.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBanHammer committed Apr 25, 2016
1 parent 8cb8ae0 commit a13bf8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webserver/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@
<div data-ng-show="(prop.c == 1)" id="chat-back">
<div class="tray">
<div data-ng-click="prop.ci = 1; filterChat()" data-ng-class="{'active' : prop.ci == 1}" class="tab btn-mainchat" title="Chat"><div class="mdi mdi-message"></div></div>
<div data-ng-click="pmFuncs.changeToPMTab()" data-ng-class="{'active' : prop.ci == 2}" class="tab btn-pm" title="Private Messages" data-ng-show="isLoggedIn"><div class="mdi mdi-message-text"></div><span class="icon-info" data-ng-show="getPMUnread() > 0" data-ng-bind="getPMUnread()"></span></div>
<div data-ng-click="pmFuncs.changeToPMTab()" data-ng-class="{'active' : prop.ci == 2}" class="tab btn-pm" title="Private Messages" data-ng-show="isLoggedIn && checkPerm('chat.private')"><div class="mdi mdi-message-text"></div><span class="icon-info" data-ng-show="getPMUnread() > 0" data-ng-bind="getPMUnread()"></span></div>
<div data-ng-click="prop.ci = 3; filterChat('mentions')" data-ng-class="{'active' : prop.ci == 3}" class="tab btn-mentions" title="Mentions" data-ng-show="isLoggedIn"><span class="icon-info">@</span></div>
</div>
<div data-ng-show="(prop.ci == 1 || prop.ci == 3)" id="chat-container">
Expand Down
2 changes: 1 addition & 1 deletion webserver/public/lib/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6920,7 +6920,7 @@

ajsApp.controller('MainController', function($scope) {
$scope.prop = {
t: 3, // Logo menu
t: 1, // Logo menu
c: 1, // Right view (Chat, Waitlist, Userlist)
p: 1, // People tabs inside of Userlist
ci: 1, // Chat list internal
Expand Down

0 comments on commit a13bf8c

Please sign in to comment.