BitShares Forum

Main => Technical Support => Topic started by: alt on December 07, 2015, 02:33:57 am

Title: how to change asset's permissions?
Post by: alt on December 07, 2015, 02:33:57 am
with api update_asset, I can remove a permission, but can't add a permission.
from the source code asset_evaluator.cpp, seems don't allow add permission
Code: [Select]
270    // new issuer_permissions must be subset of old issuer permissions                                                                                               
271    FC_ASSERT(!(o.new_options.issuer_permissions & ~a.options.issuer_permissions),
272              "Cannot reinstate previously revoked issuer permissions on an asset.");
273
so how should I do if I want to add a permission for my private asset?
Title: Re: how to change asset's permissions?
Post by: xeroc on December 07, 2015, 08:14:07 am
Aren't all permissions 'enabled' by default and you can opt-out but not re-enable?
Title: Re: how to change asset's permissions?
Post by: alt on December 07, 2015, 09:26:14 am
Aren't all permissions 'enabled' by default and you can opt-out but not re-enable?
yes, Just curious why work like this
Title: Re: how to change asset's permissions?
Post by: xeroc on December 07, 2015, 12:58:41 pm
It's to protect the buyers of a token from arbitrary misbehavior of the issuer ..
Once the permissions are removed, you can be sure that the issue will not skrew you over .. until then, you have to live with the risk or don't invest
Title: Re: how to change asset's permissions?
Post by: alt on December 07, 2015, 01:47:27 pm
It's to protect the buyers of a token from arbitrary misbehavior of the issuer ..
Once the permissions are removed, you can be sure that the issue will not skrew you over .. until then, you have to live with the risk or don't invest
thanks, I almost understand how it work.
If I want to temp switch on/of a permission, I should change flags  instead of issuer_permissions
Title: Re: how to change asset's permissions?
Post by: mint chocolate chip on December 07, 2015, 04:39:35 pm
Where can I see info on all the permissions? I created a token, kept everything as default because I would like to better understand what each choice does and its intended consequences.