Admin privileges and access

  • Restrict access of certain pages to the Admin.
  • Delete posts that violate the application policy.
  • If users engage in harmful behaviour, ban them.
  • Allow/disallow groups created by users before opening them to the application users.

Creating the role

Assigning user roles

Sign up process in Bubble.io application
user_role field in User data type
Assigning roles to user in Bubble.io
Assigning a role to user

Restricting page access

Delete posts that violate the application policy

Hiding and deleting posts in Bubble.io by Admin
Creating a flag called isVisible in the Posts data type
Using constraints in repeating group in Bubble.io
Applying constraint in the repeating group to show only unflagged Posts
Flag icon visible to the Admin
Flag icon NOT visible to users other than Admin

If users engage in harmful behaviour, ban them

isActive field in User data type
  • Prevent the user from logging in if the active field is No
  • Logging out the user and navigating them to the login page

Allow/disallow groups created by users

isApproved field to control the group’s visibility

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Himanshu Sharma

Himanshu Sharma

I help people bring their ideas to life with Bubble. http://nocodeassistant.com/