mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-03-19 15:40:50 +08:00
fixed owner starring own project
This commit is contained in:
parent
e6ffe6c1c2
commit
dbc536b7e5
src/main
@ -53,6 +53,7 @@ public class ProjectData extends JoinableData<UserProjectRolesTable, ProjectsTab
|
||||
}
|
||||
|
||||
public boolean isOwner(UsersTable usersTable) {
|
||||
if (usersTable == null) return false;
|
||||
return projectOwner.getId() == usersTable.getId();
|
||||
}
|
||||
|
||||
|
@ -88,7 +88,7 @@ Base template for Project overview.
|
||||
-->
|
||||
|
||||
<#if p.visibility != Visibility.SOFTDELETE>
|
||||
<#if headerData.hasUser() && p.isOwner(headerData.getCurrentUser())>
|
||||
<#if !p.isOwner(headerData.getCurrentUser())>
|
||||
<button class="btn btn-default btn-star">
|
||||
<i id="icon-star" <#if sp.starred>
|
||||
class="fas fa-star"
|
||||
|
Loading…
x
Reference in New Issue
Block a user