[openstreetmap/openstreetmap-website] Allow reporting of abusive users to moderators or admins (#1268)
Ilya Zverev
notifications at github.com
Mon Aug 15 10:21:11 UTC 2016
> + @user_role = "administrator"
> + else
> + @user_role = "moderator"
> + end
> + end
> +
> + def check_if_updated
> + if @issue.reportable and (@issue.ignored? or @issue.resolved?) and @issue.reportable.has_attribute?(:updated_by) and @issue.reportable.updated_at > @last_report.updated_at
> + return true
> + else
> + return false
> + end
> + end
> +
> + def get_report_details
> + details = params[:report][:details] + "--||--"
What is this separator?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1268/files/ea2d71f25bdf7fbf4cd3e389c27be4af574d6ed3#r74743449
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20160815/a48224cf/attachment.html>
More information about the rails-dev
mailing list