bunch of stuffs

This commit is contained in:
jomo
2013-07-28 02:47:10 +02:00
parent c00532aff2
commit 2699751d86
19 changed files with 299 additions and 54 deletions

View File

@@ -27,7 +27,7 @@ class BlogpostsController < ApplicationController
end
def create
if current_user && current_user.rank >= rank_to_int("mod")
if mod?
@post = Blogpost.new(params[:blogpost])
@post.user = current_user
if @post.save