Permissions assignable by user

Hey!

I have been working on bubble a lot, and I am definitely going to get a paid plan!

I have been working on levels on permissions on the site. I know how to make an element only visible for me, but I would like to be able to set levels of permissions to which I can add people

How I was thinking this would work;

  • Create a data type “permissions”
  • Create fields for levels (level 1, level 2, level 3)
  • Have the field contain all the emails of users that are allowed to make use of the specific level
  • Only allow a certain level to make changes to these fields (not to diffucult)

When a user is logged in basically
- Show element when Current user’s email is in permissions level 2
^^ That is where I dont know what to do to be honest

I cant get a conditional to run, with the condition being Current user’s email in permissions level 2…

Does anybody know how to get an element to be shown if certain data (current user’s email) is to be found in the data field?

Why not have a “permissions” field on the user type itself? That way, you can use, “Current Users Permissions” for the conditions.

That would be difficult for the admin to moderate the user. If over time, I would like to add permissions to the user, I cant enter the users account. However, I can add their email to the “level”

I Would like to do a thing just like you. I want to offer Premium Pages just for paying Users. Is there a step by step Guide to hide Dome pages for free users and Show them for paying user?

I’ve gotten it to work! I think your best bet is to either automatically (much more convenient) have a person’s email added to the list, or do it manually. If you want to show an element, the user must be in the list. I’ll try and get how I did it tonight and I’ll post a little “guide” I guess…

1 Like

Thanks. Cant wait for it!