Have you got security turned on locally? If not, turn it on by going to the project security settings.
It sounds like you may be developing without security locally, but when you deploy to the Cloud security is being applied. In this case the fix is to turn on local security to Production level. From there you’ll need set the security of each module. The documentation explains how to do this in more detail. https://docs.mendix.com/refguide/security
Hope this helps