mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-20 10:36:13 +00:00
Chat, Piwik, VC/Vidyo: Fix modif key handling
canUserAccess doesn't check modification keys
This commit is contained in:
parent
1c37e49ef3
commit
f959995d67
@ -146,7 +146,7 @@ class ChatPlugin(IndicoPlugin):
|
||||
visible=self._has_visible_chatrooms)
|
||||
|
||||
def extend_event_management_menu(self, event, **kwargs):
|
||||
if event.canUserModify(session.user) or is_chat_admin(session.user):
|
||||
if event.canModify(session.user) or is_chat_admin(session.user):
|
||||
return 'chat-management', SideMenuItem('Chat Rooms', url_for_plugin('chat.manage_rooms', event))
|
||||
|
||||
def extend_event_management_clone(self, event, **kwargs):
|
||||
|
||||
@ -72,7 +72,7 @@ class PiwikPlugin(IndicoPlugin):
|
||||
**event_tracking_params)
|
||||
|
||||
def add_sidemenu_item(self, event, **kwargs):
|
||||
if event.canUserModify(session.user):
|
||||
if event.canModify(session.user):
|
||||
menu_item = SideMenuItem(_("Statistics"), url_for_plugin('piwik.view', event))
|
||||
return 'statistics', menu_item
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{% macro render_make_me_moderator(event, vc_room, event_vc_room) %}
|
||||
{% if event.canUserModify(session.user) and session.user.id != vc_room.data['owner'][1] %}
|
||||
{% if event.canModify(session.user) and session.user.id != vc_room.data['owner'][1] %}
|
||||
<a class="i-button i-button-small highlight arrow" data-toggle="dropdown"></a>
|
||||
<ul class="dropdown" data-level="level1">
|
||||
<li>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user