예제 #1
0
 def render(self, request):
     if request.user.has_perm(
             'alliancetools.access_alliance_tools_structures'
     ) or request.user.has_perm(
             'alliancetools.access_alliance_tools_structures_renter'
     ) or request.user.has_perm('alliancetools.corp_level_alliance_tools'):
         return MenuItemHook.render(self, request)
     return ''
예제 #2
0
 def render(self, request):
     if request.user.has_perm(
             'corputils.view_corp_corpstats') or request.user.has_perm(
                 'corputils.view_alliance_corpstats'
             ) or request.user.has_perm(
                 'corputils.add_corpstats') or request.user.has_perm(
                     'corputils.view_state_corpstats'):
         return MenuItemHook.render(self, request)
     return ''
예제 #3
0
    def render(self, request):
        """
        check if the user has the permission to view this app
        :param request:
        :return:
        """
        if request.user.has_perm("fleetpings.basic_access"):
            return MenuItemHook.render(self, request)

        return ""
 def render(self, request):
     if request.user.has_perm("securegroups.access_sec_group"):
         _cnt = GracePeriodRecord.objects.filter(
             user=request.user,
             group__auto_group=False).values('group_id').distinct().count()
         if _cnt > 0:
             self.count = _cnt
         return MenuItemHook.render(self, request)
     else:
         return ""
예제 #5
0
    def render(self, request):
        """
        only if the user has access to this app
        :param request:
        :return:
        """
        if request.user.has_perm("timezones.basic_access"):
            return MenuItemHook.render(self, request)

        return ""
예제 #6
0
    def render(self, request):
        """
        Check if the user has the permission to view this app
        :param request:
        :return:
        """

        if request.user.has_perm("aa_bulletin_board.basic_access"):
            return MenuItemHook.render(self, request)

        return ""
예제 #7
0
    def render(self, request):
        """
        Only if the user has access to this app
        :param request:
        :type request:
        :return:
        :rtype:
        """

        if request.user.has_perm("afat.basic_access"):
            return MenuItemHook.render(self, request)

        return ""
예제 #8
0
    def render(self, request):
        """
        check if the user has the permission to view this app
        :param request:
        :return:
        """

        if request.user.has_perm("aasrp.basic_access"):
            app_count = AaSrpManager.pending_requests_count_for_user(
                request.user)
            self.count = app_count if app_count and app_count > 0 else None

            return MenuItemHook.render(self, request)

        return ""
예제 #9
0
 def render(self, request):
     if request.user.has_perm('mumbletemps.create_new_links'):
         return MenuItemHook.render(self, request)
     return ''
예제 #10
0
 def render(self, request):
     if request.user.has_perm('corputils.view_corp_corpstats') or request.user.has_perm(
             'corputils.view_alliance_corpstats') or request.user.has_perm(
             'corputils.add_corpstats') or request.user.has_perm('corputils.view_state_corpstats'):
         return MenuItemHook.render(self, request)
     return ''
예제 #11
0
 def render(self, request):
     if request.user.has_perm('auth.timer_view'):
         return MenuItemHook.render(self, request)
     return ''
예제 #12
0
 def render(self, request):
     return MenuItemHook.render(self, request)
예제 #13
0
 def render(self, request):
     if request.user.has_perm('auth.jabber_broadcast') or request.user.has_perm('auth.jabber_broadcast_all'):
         return MenuItemHook.render(self, request)
     return ''
예제 #14
0
 def render(self, request):
     if request.user.has_perm('fittings.access_fittings'):
         return MenuItemHook.render(self, request)
     return ''
예제 #15
0
 def render(self, request):
     if request.user.has_perm('alliancetools.view_moonextractevent'):
         return MenuItemHook.render(self, request)
     return ''
예제 #16
0
 def render(self, request):
     if request.user.has_perm('alliancetools.add_alliancetooljobcomment'):
         return MenuItemHook.render(self, request)
     return ''
예제 #17
0
 def render(self, request):
     if request.user.has_perm('standingsrequests.request_standings'):
         return MenuItemHook.render(self, request)
     return ''
예제 #18
0
 def render(self, request):
     if request.user.has_perm('auth.view_fleetup'):
         return MenuItemHook.render(self, request)
     return ''
예제 #19
0
 def render(self, request):
     if request.user.has_perm('srp.access_srp'):
         return MenuItemHook.render(self, request)
     return ''
예제 #20
0
 def render(self, request):
     if request.user.has_perm('auth.timer_view'):
         return MenuItemHook.render(self, request)
     return ''
예제 #21
0
 def render(self, request):
     if request.user.has_perm('blacklist.view_eve_notes') or request.user.has_perm('blacklist.view_basic_eve_notes'):
         return MenuItemHook.render(self, request)
     return ''
 def render(self, request):
     if GroupManager.can_manage_groups(
             request.user) and request.user.has_perms(
                 "securegroups.audit_sec_group"):
         return MenuItemHook.render(self, request)
     return ""
예제 #23
0
 def render(self, request):
     if request.user.has_perm('srp.access_srp'):
         return MenuItemHook.render(self, request)
     return ''
예제 #24
0
 def render(self, request):
     if request.user.has_perm(
             'alliancetools.admin_alliance_tools') or request.user.has_perm(
                 'alliancetools.corp_level_alliance_tools'):
         return MenuItemHook.render(self, request)
     return ''
 def render(self, request):
     if request.user.has_perm('example.view_example'):
         return MenuItemHook.render(self, request)
     return ''
예제 #26
0
 def render(self, request):
     member_state = State.objects.get(name='Member')
     if request.user.profile.state == member_state:
         return MenuItemHook.render(self, request)
     return ''
예제 #27
0
 def render(self, request):
     if request.user.has_perm('moons.view_all'):
         return MenuItemHook.render(self, request)
     return ''
예제 #28
0
 def render(self, request):
     if request.user.has_perm('corptools.view_characteraudit'):
         return MenuItemHook.render(self, request)
     return ''
예제 #29
0
 def render(self, request):
     if request.user.has_perm("fleet.fleet_access"):
         return MenuItemHook.render(self, request)
     return ""
예제 #30
0
 def render(self, request):
     if request.user.has_perm('blacklist.view_eve_blacklist'):
         return MenuItemHook.render(self, request)
     return ''
예제 #31
0
 def render(self, request):
     if request.user.has_perm('permissions_tool.audit_permissions'):
         return MenuItemHook.render(self, request)
     return ''