lib/ab_admin/models/user.rb in ab_admin-0.5.0 vs lib/ab_admin/models/user.rb in ab_admin-0.6.0

- old
+ new

@@ -45,19 +45,23 @@ self.password = self.password_confirmation = raw_password self.save(validate: false) raw_password end - def moderator? - has_role?(:admin) || has_role?(:moderator) - end - def admin_access? moderator? end def default? has_role?(:default) + end + + def redactor? + has_role?(:redactor) + end + + def moderator? + has_role?(:admin) || has_role?(:moderator) end def admin? has_role?(:admin) end \ No newline at end of file