[develop | DONE | REMOVED] remove test logs
This commit is contained in:
parent
1f29b3200f
commit
1aa3b54a1a
|
@ -27,9 +27,7 @@ export class CommunityAccessGuard {
|
||||||
this.communityService.getCommunity(community).pipe(take(1))
|
this.communityService.getCommunity(community).pipe(take(1))
|
||||||
]).pipe(
|
]).pipe(
|
||||||
map(([user, communityInfo]) => {
|
map(([user, communityInfo]) => {
|
||||||
console.log(user, communityInfo)
|
|
||||||
if (communityInfo) {
|
if (communityInfo) {
|
||||||
console.log(communityInfo.status)
|
|
||||||
if (communityInfo.isPublic()) {
|
if (communityInfo.isPublic()) {
|
||||||
return true;
|
return true;
|
||||||
} else if (communityInfo.isPrivate()) {
|
} else if (communityInfo.isPrivate()) {
|
||||||
|
@ -46,7 +44,6 @@ export class CommunityAccessGuard {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (Session.isPortalAdministrator(user) || Session.isCommunityCurator(user) || Session.isManager('community', community, user) || Session.isSubscribedTo('community', community, user)) {
|
if (Session.isPortalAdministrator(user) || Session.isCommunityCurator(user) || Session.isManager('community', community, user) || Session.isSubscribedTo('community', community, user)) {
|
||||||
console.log("user: has access")
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
this.router.navigate(['/user-info'], {
|
this.router.navigate(['/user-info'], {
|
||||||
|
|
Loading…
Reference in New Issue