fix sharing redirect
This commit is contained in:
parent
25a7abb344
commit
2dafb07cea
@ -261,6 +261,10 @@ class v1 {
|
||||
project.user_id = target_user.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()
|
||||
|
||||
return res.redirect('/dash/v1')
|
||||
|
@ -34,7 +34,7 @@ const index = {
|
||||
* controller() calls get methods in Flitter controllers
|
||||
*/
|
||||
get: {
|
||||
'/': [ _flitter.controller('Home').welcome ],
|
||||
'/': [ _flitter.mw('v1:Invite'), _flitter.controller('Home').welcome ],
|
||||
},
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user