Pervent user/client to create resources

Discussion in 'Installation/Configuration' started by kaostc, Jun 8, 2023.

  1. kaostc

    kaostc Member HowtoForge Supporter

    It is possible to prevent an user to create sites/subdomains/databases? I have found that it is possible to limit how many sites they can create but is there a way to make the add site button simply not appear?

    Thanks a lot
     
  2. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    enable domain limits. that way they can't choose random domains. they need to be assigned to their account first.

    then create client limit templates... you can specify a maximum number of domains / subdomains / databases etc they can create.
     
    ahrasis likes this.
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What @nhybgtvfr wrote. But if you really want
    I believe only way is to edit ISPConfig code, set in style file that button to not display.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Set Limit to 0
     
    ahrasis likes this.
  5. kaostc

    kaostc Member HowtoForge Supporter

    Thanks a lot for your answers. I have been trying a bit with limits and want to share some thoughts/doubts:
    - About server limit, both web server limit and database server limit behave in a different way: In web server limit, if you do not choose any server the user can create webs in any server. In database server limit, if you do not choose any server, the database option disappear.
    - In domains/database/database user/... limits, setting them to -1 means unlimited but 0 makes the option disappear. But in case of domain limit, the user still being able to list the domains by selecting sites on main menú (it goes to domain list although if this suboption is not being displayed in sidebar menú).
    - Setting the limits to 0 also prevent the user to modify existing items since they are not listed anymore on sidebar menú, but there is a workaround cause you can edit them in statistics options of sidebar menu (although it is not very intuitive).
    - In some cases limits are displayed incorrectly in dashboard (first tab)
    Despite of all the above, the options provided works for most of the configurations needed, and the are more than enough for my needs. I am amazed and charmed about how ISPConfig eases tasks that would be very complicated to implement from scratch.
    Thanks for your help!!
     

Share This Page