Function operation authority control method based on JSON format
暂无分享,去创建一个
The invention discloses a function operation authority control method based on a JSON format. The specific implementation process of the function operation authority control method comprises the steps that (a) conditions needed by control of each operation authority are defined; (b) when the names of the authorities are obtained in the step (a), corresponding authority control data are loaded into internal storage according to the names; (c) the authority control data loaded in the internal storage in the step (b) are judged item by item to determine whether a condition set of each operation has the operation authorities or not according to the initial state; (d) the information, obtained in the step (c), with the operation authorities is returned to a client side, all the operation information is generated into related buttons through scripts of the client side, and register of dependent events are conducted. Compared with the prior art, the function operation authority control method based on the JSON format achieves the purpose of consistency of verification of the operation authorities of users by a Web side and a Server side through the data in the internal storage, much verification logic does not need to be written, and control over the operation authorities is achieved through a configurable mode.