summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model')
-rw-r--r--app/Model/Config.php2
-rw-r--r--app/Model/ProjectPermission.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/app/Model/Config.php b/app/Model/Config.php
index 273f884a..be9d4ae5 100644
--- a/app/Model/Config.php
+++ b/app/Model/Config.php
@@ -35,7 +35,7 @@ class Config extends Setting
'RSD' => t('RSD - Serbian dinar'),
'SEK' => t('SEK - Swedish Krona'),
'NOK' => t('NOK - Norwegian Krone'),
- 'BAM' => t('BAM - Konvertibile Mark'),
+ 'BAM' => t('BAM - Konvertible Mark'),
);
}
diff --git a/app/Model/ProjectPermission.php b/app/Model/ProjectPermission.php
index b311c10b..f74b8587 100644
--- a/app/Model/ProjectPermission.php
+++ b/app/Model/ProjectPermission.php
@@ -28,10 +28,10 @@ class ProjectPermission extends Base
return $this
->db
- ->table(self::TABLE)
+ ->table(ProjectUserRole::TABLE)
->join(User::TABLE, 'id', 'user_id')
->join(Project::TABLE, 'id', 'project_id')
- ->eq(self::TABLE.'.role', $role)
+ ->eq(ProjectUserRole::TABLE.'.role', $role)
->eq(Project::TABLE.'.is_private', 0)
->in(Project::TABLE.'.id', $project_ids)
->columns(
@@ -88,7 +88,7 @@ class ProjectPermission extends Base
*/
public function isMember($project_id, $user_id)
{
- return in_array($this->projectUserRole->getUSerRole($project_id, $user_id), array(Role::PROJECT_MEMBER, Role::PROJECT_MANAGER));
+ return in_array($this->projectUserRole->getUserRole($project_id, $user_id), array(Role::PROJECT_MEMBER, Role::PROJECT_MANAGER));
}
/**