Fixed broken links in tasks-module. Translated some views into german.
This commit is contained in:
parent
85eb27079f
commit
96442477d1
24 changed files with 141 additions and 274 deletions
|
|
@ -181,8 +181,8 @@ class User < ActiveRecord::Base
|
|||
end
|
||||
|
||||
# returns true if user is a member of a given group
|
||||
def is_member_of(group)
|
||||
return true if group.users.detect {|user| user == self}
|
||||
def member_of?(group)
|
||||
group.users.exists?(self.id)
|
||||
end
|
||||
|
||||
#Returns an array with the users groups (but without the Ordergroups -> because tpye=>"")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue