(07-02-2017, 11:43 AM)Alex. Wrote: This is relatively small and obscure, but could be useful to many players so I wanted to mention it somewhere visible.
After the server migration yesterday we updated the POB plugin to allow base administrators to do this:
Code:
/base addpwd <password> viewshop
The extra 'viewshop' causes the password, when used in "/base login <password>", to only allow access to read-only parts of /shop. Useful for people who supply the base (you can see how much the base has of each commodity) but who base administrators don't want fiddling with other things (e.g. the bank).
rmpwd, lstpwd etc. are all compatible with this of course.
just to be clear can the suppliers that login with this password NOT be able to rmpwd and lstpwd?
Posts: 3,700
Threads: 144
Joined: Aug 2009
Staff roles: Server Manager Coding Dev Moderator
The only extra command granted by logging in with a viewshop password is part of /shop, and not even all of that (e.g. no remove/price subcommand access). They can't even add new viewshop passwords.
rmpwd and lstpwd are mentioned because you, as a base administrator, may view viewshop passwords on lstpwd (which distinguishes between admin and viewshop passwords), and may remove viewshop passwords using rmpwd.
(09-28-2017, 09:04 AM)LourensVanBurick Wrote: I used the /base addpwd MyPass viewshop
but this new MyPass gives full control of POB...
This feature has been disabled some time ago (along with /setmsg and other stuff), to debug what was causing server lags and crashes. It seems like Devs reverted back to previous version of the POB FLhook code, which does not include the "viewshop" funcionality.
After some testing it seems to work like this:
/base addpwd <password> viewshop
produces the same result as: /base addpwd <password>
In both cases it is password with full Administrator rights.
Passwords previously set by: /base addpwd <password> viewshop no longer work, you get ERR Access denied message.
The only really minor issue I run into is this:
If you login with ViewShopPass and then with AdminPass, it elevates rights to Admin.
But if you login with AdminPass and then with ViewShopPass, the rights are not delevated to ShopViewer and stay Admin.
This does not mean the ViewShopPass can be changed to AdminPass by doing this. It is not really an issue, just an observation how it works.
Posts: 3,700
Threads: 144
Joined: Aug 2009
Staff roles: Server Manager Coding Dev Moderator
(09-30-2017, 06:18 AM)ronillon Wrote: The only really minor issue I run into is this:
If you login with ViewShopPass and then with AdminPass, it elevates rights to Admin.
But if you login with AdminPass and then with ViewShopPass, the rights are not delevated to ShopViewer and stay Admin.
This does not mean the ViewShopPass can be changed to AdminPass by doing this. It is not really an issue, just an observation how it works.
Yep, that's known behaviour and not really an issue. You accumulate rights on each login, they are not reset when you do another login.