Send notifications on user mentions
This commit is contained in:
@@ -86,11 +86,24 @@ class ProjectPermission extends Base
|
||||
* @param integer $user_id
|
||||
* @return boolean
|
||||
*/
|
||||
public function isMember($project_id, $user_id)
|
||||
public function isAssignable($project_id, $user_id)
|
||||
{
|
||||
return in_array($this->projectUserRole->getUserRole($project_id, $user_id), array(Role::PROJECT_MEMBER, Role::PROJECT_MANAGER));
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if the user is member
|
||||
*
|
||||
* @access public
|
||||
* @param integer $project_id
|
||||
* @param integer $user_id
|
||||
* @return boolean
|
||||
*/
|
||||
public function isMember($project_id, $user_id)
|
||||
{
|
||||
return in_array($this->projectUserRole->getUserRole($project_id, $user_id), array(Role::PROJECT_MEMBER, Role::PROJECT_MANAGER, Role::PROJECT_VIEWER));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get active project ids by user
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user