This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Fix getting a single EmailDomainBlock (
#20846
)
closed-social-glitch-2
trwnh
2 years ago
committed by
GitHub
parent
00b2720ef0
commit
72618ebf03
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
4 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
app/policies/email_domain_block_policy.rb
+ 4
- 0
app/policies/email_domain_block_policy.rb
View File
@ -5,6 +5,10 @@ class EmailDomainBlockPolicy < ApplicationPolicy
role
.
can?
(
:manage_blocks
)
role
.
can?
(
:manage_blocks
)
end
end
def
show?
role
.
can?
(
:manage_blocks
)
end
def
create?
def
create?
role
.
can?
(
:manage_blocks
)
role
.
can?
(
:manage_blocks
)
end
end
Write
Preview
Loading…
Cancel
Save