Skip to content
Snippets Groups Projects
Commit b8b2f1e3 authored by Richard Fernando Heise Ferreira's avatar Richard Fernando Heise Ferreira
Browse files

Merge branch 'issue/50-FIX-level-to-turn-into-curator' into 'develop'

ISSUE #50: FIX level to turn into curator

See merge request rfhf19/cleanning-portalmec!47
parents a4e819f7 c6bb2545
No related branches found
No related tags found
1 merge request!47ISSUE #50: FIX level to turn into curator
Pipeline #34441 failed
......@@ -359,8 +359,8 @@ class User < ApplicationRecord
new_level, remaining_xp = calculate_level(xp)
self.level = new_level
#if the new level is more than 5, give him curator role
if new_level >= 5 && !self.is_curator?
#if the new level is more than 3 or equal, give them curator role
if new_level >= 3 && !self.is_curator?
self.roles << Role.find_by(name: 'curator')
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment