lib/meibo/enrollment.rb in meibo-0.4.0 vs lib/meibo/enrollment.rb in meibo-0.5.0

- old
+ new

@@ -45,7 +45,23 @@ @end_date = end_date @shusseki_no = shusseki_no @public_flg = public_flg @extension_fields = extension_fields end + + def administrator? + role == ROLES[:administrator] + end + + def proctor? + role == ROLES[:proctor] + end + + def student? + role == ROLES[:student] + end + + def teacher? + role == ROLES[:teacher] + end end end