Group: new link on dashboard if admin. Fixed people count
This commit is contained in:
parent
26045d7a2c
commit
ce1b742b1e
4 changed files with 11 additions and 2 deletions
|
@ -22,6 +22,10 @@ module Account
|
|||
projects_limit > my_own_projects.count
|
||||
end
|
||||
|
||||
def can_create_group?
|
||||
is_admin?
|
||||
end
|
||||
|
||||
def last_activity_project
|
||||
projects.first
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue