This website works better with JavaScript.
Explore
Help
Sign In
MetuFSS
/
metu.life
Watch
2
Star
1
Fork
You've already forked metu.life
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5813
Commits
1
Branch
0
Tags
134 MiB
Tag:
Branch:
Tree:
625b5a567b
master
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from '625b5a567b'
${ noResults }
metu.life
/
app
/
policies
/
subscription_policy.rb
8 lines
110 B
Raw
Normal View
History
Unescape
Escape
Add moderator role and add pundit policies for admin actions (#5635) * Add moderator role and add pundit policies for admin actions * Add rake task for turning user into mod and revoking it again * Fix handling of unauthorized exception * Deliver new report e-mails to staff, not just admins * Add promote/demote to admin UI, hide some actions conditionally * Fix unused i18n
7 years ago
# frozen_string_literal: true
class
SubscriptionPolicy
<
ApplicationPolicy
def
index?
admin?
end
end