This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
闭社主体 forked from
https://github.com/tootsuite/mastodon
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.
5696
Commits
2
Branches
112 MiB
Tree:
baff4a7ce0
closed-social-v3
master
v0.1.2
v0.1.1
v0.1.0
Branches
Tags
${ item.name }
Create branch
${ searchTerm }
from 'baff4a7ce0'
${ noResults }
mastodon_neko
/
app
/
policies
/
subscription_policy.rb
7 lines
110 B
Raw
Normal View
History
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