e6c74e8251
- add users.is_moderator and look at that for most things, not is_admin - make default user in readme be a moderator - log moderator actions in story edits, comment deletions/undeletions (and later, user disabling). - remove ability for moderators to edit comments, there's really no reason to.
14 lines
290 B
Ruby
14 lines
290 B
Ruby
class ModerationsController < ApplicationController
|
|
def index
|
|
@pages = Moderation.count
|
|
@page = params[:page] ? params[:page].to_i : 0
|
|
|
|
if @page < 1
|
|
@page = 1
|
|
end
|
|
|
|
@moderations = Moderation.order("id desc").limit(50).offset((@page - 1) *
|
|
50).all
|
|
end
|
|
end
|