Commit 5de8ea88 authored by Alexandros Georgantas's avatar Alexandros Georgantas

fix(authorize): fix for correct props propagation

parent 4f4491a4
Pipeline #8368 passed with stages
in 16 minutes and 20 seconds
......@@ -23,11 +23,6 @@ export class Authorize extends React.Component {
this.checkAuth(nextProps)
}
shouldComponentUpdate(nextProps, nextState) {
if (this.state.authorized === nextState.authorized) return false
return true
}
async checkAuth({ authsome, currentUser, operation, object }) {
try {
const authorized = await authsome.can(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment