diff --git a/app/models/user.rb b/app/models/user.rb index d4e71009..a0861cd2 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -818,6 +818,9 @@ class User < Principal # authorize if user has at least one role that has this permission roles = memberships.collect {|m| m.roles}.flatten.uniq + if roles.count == 0 + roles = coursememberships.collect {|m| m.roles}.flatten.uniq + end roles << (self.logged? ? Role.non_member : Role.anonymous) roles.any? {|role| role.allowed_to?(action) && diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 1952334e..97acb9a7 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -691,6 +691,12 @@ ul.tool li{list-style-type:none; word-break: break-all; } +ul.user_course_sort{margin:0px; padding-left:0em;} +ul.user_course_sort li{list-style-type:none; + height:auto;} + + + .info-break{ word-wrap: break-word; word-break: break-all;