Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

change to only Links role

  • Loading branch information...
commit c7967f8970de62e7df00f62560dc35eb45781295 1 parent 0e21a43
Travis Warlick authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 links_extension.rb
View
6 links_extension.rb
@@ -15,11 +15,7 @@ class LinksExtension < Radiant::Extension
def activate
Page.send :include, LinkTags
- vis = []
- vis << :links if defined?(Role) && Role.exists?(:role_name => 'Links')
- vis = [:all] if vis.empty?
-
- admin.tabs.add "Links", "/admin/links", :after => "Layouts", :visibility => vis
+ admin.tabs.add "Links", "/admin/links", :after => "Layouts", :visibility => [:links]
end
def deactivate
Please sign in to comment.
Something went wrong with that request. Please try again.