Hi all, I have a workflow that is not behaving at expected and I could use some help. Upon making changes to a thing, an email is supposed to be sent to the “current user” who made the change, as well as another email to the creator of the thing, to let them know of the change. The emails to the “current users” are functioning properly, however, the email to the creator of the thing doesn’t do seem to do anything. I thought this would be pretty straight forward but it doesn’t work and I’m not sure what to try next. Thoughts?
Hi there, @isaacdbrown1… I’m going to guess that the behavior you are seeing is related to the default privacy rule on the
User data type, and that rule is
This User is Current User. With that rule in place, the currently logged in user can only see their own data, and I believe that is consistent with the behavior you have described.
So, check your privacy rules and if you see the rule I mentioned above, either remove it or modify it to meet the needs of your app, and you should be good to go.
Hope this helps.
That did the trick. Thank you for your insight. I removed the rule and the email went through as expected. I wasn’t sure how to modify it appropriately. Is removing the rule something I need to be concerned about?
Cool… happy to hear it’s working now. Removing that particular rule isn’t necessarily concerning because it was getting in your way. However, privacy rules are an important part of any Bubble app, so you should certainly learn about them and put rules in place that meet the needs of your app.
Oh, one thing to keep in mind when it comes to privacy rules is that you can choose to ignore them when running backend workflows. So, you could have a rule in place that keeps your data secure on the client side, and you can “bypass” that rule by using a backend workflow to perform an action on the server side where the workflow will have access to the data without exposing it to the client. Again, just something to keep in mind.