fix sharing redirect
This commit is contained in:
parent
25a7abb344
commit
2dafb07cea
@ -260,6 +260,10 @@ class v1 {
|
|||||||
|
|
||||||
project.user_id = target_user.uuid
|
project.user_id = target_user.uuid
|
||||||
project.shared_user_ids.push(req.session.auth.uuid)
|
project.shared_user_ids.push(req.session.auth.uuid)
|
||||||
|
|
||||||
|
if ( project.shared_user_ids.includes(req.session.auth.uuid) ){
|
||||||
|
project.shared_user_ids.splice(project.shared_user_ids.indexOf(target_user.uuid), 1)
|
||||||
|
}
|
||||||
|
|
||||||
await project.save()
|
await project.save()
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ const index = {
|
|||||||
* controller() calls get methods in Flitter controllers
|
* controller() calls get methods in Flitter controllers
|
||||||
*/
|
*/
|
||||||
get: {
|
get: {
|
||||||
'/': [ _flitter.controller('Home').welcome ],
|
'/': [ _flitter.mw('v1:Invite'), _flitter.controller('Home').welcome ],
|
||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user