     return {link:link}
 
 module.directive("tgIssuesFilters", ["$log", "$tgLocation", "$tgResources", "$tgConfirm", "$tgLoading",
-                                     "$tgTemplate", "$translate", "$compile", IssuesFiltersDirective])
+                                     "$tgTemplate", "$translate", "$compile", "$tgAuth", IssuesFiltersDirective])
 
 
 #############################################################################

## Issues Filters Directive
#############################################################################

IssuesFiltersDirective = ($log, $location, $rs, $confirm, $loading, $template, $translate, $compile) ->
    template = $template.get("issue/issues-filters.html", true)
    templateSelected = $template.get("issue/issues-filters-selected.html", true)


            html = $compile(html)($scope)
            $el.find(".filters-applied").html(html)

            if $auth.isAuthenticated() && selectedFilters.length > 0
                $el.find(".save-filters").show()
            else
                $el.find(".save-filters").hide()
