So, I didn't remove LexAuthUser.IsProjectMember like I said I would. LexAuthUser seems like a nice place for that.
But I think this refactor makes the PermissionService API less confusing.
The old bool CanSyncProject and the new bool IsProjectMember are not equivalent. But there were only 2 places that use bool CanSyncProject and only 1 needed adapting.
I also found a place where I had forgotten to pass an overrideUser.
I removed the comments from IPermissionService, because they're not necessary now that the API is more intuitive.
So, I didn't remove LexAuthUser.IsProjectMember like I said I would. LexAuthUser seems like a nice place for that.
But I think this refactor makes the PermissionService API less confusing.
The old
bool CanSyncProject
and the newbool IsProjectMember
are not equivalent. But there were only 2 places that usebool CanSyncProject
and only 1 needed adapting.overrideUser
.IPermissionService
, because they're not necessary now that the API is more intuitive.