Services Plugins FAQs

Coursely - Admin and %

Hi,

I’ve just started using the coursely template…

I’ve noticed that the ‘admin dashboard’ seems to be available to all users when they log in to the system, so they can access all user and classes data, and edit and delete it.

Surely that’s not correct? Or am I missing something.

Also, I can’t seem to see how to change the platform fee - it’s set at 9% but there’s no option to change it.

Thanks
Adam

Greetings, Adam!

Thanks for reaching out :slight_smile:

Basically, the Admin dashboard is meant to be available for admin user only. You can adjust it to be shown only to your Admin user or whatever you like to, everything is opened for custom configuration.

Also, in Demo version of Coursely template, the Admin dashboard is available for any logged user because it is a test version of the template and each new user is concerned as an Admin user/template owner.

Concerning the platform fee, this element can be changed only by a user with admin rights. This condition is in the settings of the template. If you wonder how to set admin right to some user, check this out:

  1. Open your templates’ Settings, go to Data, App Data, choose the user you want to have admin rights, click on Pen button (Edit):
  2. http://prntscr.com/rod4vn
  3. In UserAdmin dropdown choose yes :
  4. http://prntscr.com/rod6m3

Take care,

Hello,

I have specified an admin role for a user in App Data, but still this user does not have access to the admin panel. What could be the reason?

https://drive.google.com/file/d/1Uzxe95fHFm0ke9-CsIAFHCUEqMEpVCD6/view?usp=drivesdk

Hi @Andrey,

Thanks for reaching out. Sorry about this one, we have to update our docs so it doesn’t confuse our customers, but this red group just needs to be deleted on your side because it doesn’t contain any conditionals:

So you just remove it and use the admin rights, because you should be able to edit/delete user info if setting UserAdmin field to “yes”.

Best,
Alex

Thanks. I’ll delete the red message.
But did I understand correctly that there is only one function in the admin panel - editing and deleting users?

For example, functions for setting up payment systems, enabling / disabling Stripe, isn’t there?

Correct @Andrey,

The admin panel allows you to edit and delete users, but you are able to customize and implement any other functionality you want.

But for setting up payment systems and enabling / disabling Stripe, this is something to be done at your editor level, Plugins tab.

Demo version here is this meant - https://udemytemplate.bubbleapps.io?

I installed the template in my account, but all my users have access to the dashboard and can delete any users.

Is this some kind of demo mode? How can I disable it?

In fact, the state of the UserAdmin field does not affect access to the dashboard page in any way. All users see the list of users immediately after registration and can delete each other.

Thanks @Andrey for asking.

Let me explain how it works. So our demo apps where you can test the template before purchase - https://udemytemplate.bubbleapps.io/ - is displaying the Admin button so each user can test and see the dashboard, but we set admin restrictions so nobody is able to edit/delete app data for security measurements.

That’s why we provide documentation instructions on how to grant admin rights to use dashboard features to the fullest, but sorry about this one because this part is missing from our docs and we’ll certainly update it! :pray:

If you set the UserAdmin to “yes”, the you’ll be able to save the edited information, as well as confirm the delete. But if this field is set to “no” by default, user will be able to access the dashboard, but it is in the read-only mode at this point. This database modification doesn’t influence the Admin button visibility, because in this case our customers would not be able to test the Admin Panel before purchasing the template.

So you just have to delete this button because admin dashboards should only be visible to admins. Or you can set the condition to check whether current user’s UserAdmin is “yes” or not, or any other logic you want.

Thanks for understanding. :pray:

Thank you very much. This is exactly what I did with the Admin button.

But all the same, this does not solve the problem with access to the dashboard for all users. Anyone can follow the direct link and get full access to the dashboard.

Please add instructions to the documentation on how to set up access control to the dashboard.

Please post about it in this thread when the documentation is updated. Thanks in advance.

Or you can give a link to any instruction where access control is described.

Thanks @Andrey, we’ll notify you as soon as we update our docs.

Also, could you please share a screencast of your preview and App Data tab with user examples, because this problem is not reproducing on our side, unfortunately. What exactly is bothering you at this point? Users with UserAdmin set to “no” are able to preview the admin dashboard and even press the edit/delete icons, but they are not able to edit and save the edited information, nor delete the user because there are conditions that verify whether or not they have admin rights.

Have you tried to edit and submit the edited data or delete some any data with a logged in user that has UserAdmin set to “no”? It would be best to share a screecast of this process so we can see whether there is a problem or not. :pray:

Yes you are right. Non-admin cannot edit data. He can only read it.

I correctly understood that the only way to restrict access to reading data is to make the following workflow on the dashboard page:
https://drive.google.com/file/d/1bBm-SZ0qwKYOAIUH4yNX29rI-bruJi_E/view?usp=drivesdk

@Andrey, I’m afraid this workflow will always send your user to the page signup, even if he is logged in, because as you see this condition checks this OR that.

The one you are looking for is perhaps setting the condition when you click on Admin button in your Header, to go to page dashboard only when current user’s UserAdmin is “yes”.

It really depends on your project preferences, but the idea is that you are able to adjust any workflow as you like.

If you need more Bubble help, please post your request here instead https://forum.bubble.io/

@Andrey we have updated our docs with dashboard instructions. Thanks!

1 Like