evazion
a7dc05ce63
Enable frozen string literals.
...
Make all string literals immutable by default.
2021-12-14 21:33:27 -06:00
evazion
937653e519
models: move html_data_attributes to policies.
...
Move html_data_attributes definitions from models to policies. Which
attributes are permitted as data-* attributes is a view level concern
and should be defined on the policy level, not the model level. Models
should be agnostic about how they're used in views.
2020-08-17 22:33:18 -05:00
BrokenEagle
11d0539ea1
Prevent creators from voting on their own BURs
2020-06-20 05:29:55 +00:00
evazion
0ad5619484
pundit: add missing authorize calls.
2020-03-24 00:38:07 -05:00
evazion
cc2b4abd09
pundit: convert forum post votes to pundit.
2020-03-20 18:03:01 -05:00
evazion
9242bf522b
pundit: convert moderation reports to pundit.
2020-03-20 18:03:01 -05:00
evazion
db63b6d44f
pundit: convert forum topics / forum posts to pundit.
...
Fix it being possible for users to delete or undelete their own forum
posts and topics, even if they were deleted by a mod.
2020-03-20 18:03:00 -05:00