alpha
Login
or
Join now
4uffin.bsky.social
/
core
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
My own copy of Tangled :)
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
appview: fix roles check
author
Akshay
date
1 year ago
(Apr 17, 2025, 9:34 AM +0100)
commit
b4e433c5
b4e433c54f0bc847ebe3f72553079ab6b9d44650
parent
f699b193
f699b193c561380e2e0b6c4a1857c0a5c54643eb
+2
-1
1 changed file
Expand all
Collapse all
Unified
Split
appview
state
repo_util.go
+2
-1
appview/state/repo_util.go
Reviewed
···
58
58
59
59
func RolesInRepo(s *State, u *auth.User, f *FullyResolvedRepo) pages.RolesInRepo {
60
60
if u != nil {
61
61
-
r := s.enforcer.GetPermissionsInRepo(u.Did, f.Knot, f.OwnerSlashRepo())
61
61
+
ownerSlashRepo := fmt.Sprintf("%s/%s", f.OwnerDid(), f.RepoName)
62
62
+
r := s.enforcer.GetPermissionsInRepo(u.Did, f.Knot, ownerSlashRepo)
62
63
return pages.RolesInRepo{r}
63
64
} else {
64
65
return pages.RolesInRepo{}