irlnathan / activityoverlord

An application I'm building to learn sails.js
317 stars 101 forks source link

Revoking admin permission #26

Open GregAujay opened 8 years ago

GregAujay commented 8 years ago

Hello,

I might be missing something but it seems that if an admin(A) removes user(U)'s admin permission while U was logged in as an admin then he can still restore his admin status.

What would be the right approach to avoid this situation where the session object becomes outdated?