Fixed error where when super_user updated a Thread, it would always be maked closed and public
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
<li ng-class="{active: chosen == 'open'}"><a href ng-click="getMessages('open')">Open</a></li>
|
<li ng-class="{active: chosen == 'open'}"><a href ng-click="getMessages('open')">Open</a></li>
|
||||||
<li ng-class="{active: chosen == 'closed'}"><a href ng-click="getMessages('closed')">Closed</a></li>
|
<li ng-class="{active: chosen == 'closed'}"><a href ng-click="getMessages('closed')">Closed</a></li>
|
||||||
<li ng-class="{active: chosen == 'all'}"><a href ng-click="getMessages('all')">All</a></li>
|
<li ng-class="{active: chosen == 'all'}"><a href ng-click="getMessages('all')">All</a></li>
|
||||||
<li class="dropdown pull-right">
|
<li class="dropdown pull-right active">
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Tags
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Tags
|
||||||
<b class="caret"></b>
|
<b class="caret"></b>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@ -59,9 +59,9 @@ def update(request):
|
|||||||
public = request.json_body['Public']
|
public = request.json_body['Public']
|
||||||
closed = request.json_body['Closed']
|
closed = request.json_body['Closed']
|
||||||
if super_user or (thread.public and not public):
|
if super_user or (thread.public and not public):
|
||||||
thread.public = False
|
thread.public = public
|
||||||
if super_user or (not thread.closed and closed):
|
if super_user or (not thread.closed and closed):
|
||||||
thread.closed = True
|
thread.closed = closed
|
||||||
thread.priority = request.json_body['Priority']
|
thread.priority = request.json_body['Priority']
|
||||||
|
|
||||||
newTags = request.json_body['Tags']
|
newTags = request.json_body['Tags']
|
||||||
|
|||||||
Reference in New Issue
Block a user