CN117609982A - Menu authority modification method, menu authority modification device and storage medium - Google Patents

Menu authority modification method, menu authority modification device and storage medium Download PDF

Info

Publication number
CN117609982A
CN117609982A CN202311524695.9A CN202311524695A CN117609982A CN 117609982 A CN117609982 A CN 117609982A CN 202311524695 A CN202311524695 A CN 202311524695A CN 117609982 A CN117609982 A CN 117609982A
Authority
CN
China
Prior art keywords
menu
information
role
rights
modification request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311524695.9A
Other languages
Chinese (zh)
Inventor
陆志远
刘海东
苏南
张宝浩
程成林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Merchants Finance Technology Co Ltd
Original Assignee
China Merchants Finance Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Merchants Finance Technology Co Ltd filed Critical China Merchants Finance Technology Co Ltd
Priority to CN202311524695.9A priority Critical patent/CN117609982A/en
Publication of CN117609982A publication Critical patent/CN117609982A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a method for modifying menu rights, a device for modifying menu rights and a storage medium, wherein the method comprises the following steps: when a permission modification request is received, role information corresponding to the permission modification request is determined; determining the access resource corresponding to the role information and/or the menu authority corresponding to the access resource; and when the access resource meets the target resource corresponding to the permission modification request and/or the menu permission meets the permission corresponding to the permission modification request, associating the user information corresponding to the permission modification request to the role information. When receiving the corresponding permission modification request, the invention can bind the user information into the corresponding role information according to the defined association relationship between the roles and the resources and the association relationship between the resources and the menu, so that the user can access the corresponding menu through the modified role information, and the modification efficiency of the menu permission is improved while the modification of the menu permission is completed.

Description

Menu authority modification method, menu authority modification device and storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a method for modifying menu rights, a device for modifying menu rights, and a storage medium.
Background
The common menu authority control mode is to control through a predefined menu enumeration value, if a new menu is to be added, the enumeration value of the corresponding menu needs to be added in the code, and the enumeration value generally comprises read-only authority, editing authority, deletion authority and the like. However, when the menu access rights of the user need to be adjusted, the enumerated values of the respective menus need to be individually checked or unchecked. When the number of menus is large, the workload of modification is large, and the modification efficiency of the menu access authority of the user is low.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a method for modifying menu authority, a device for modifying menu authority and a storage medium, which solve the problem that in the prior art, when the number of menus is large, the workload of modification is large, and the modification efficiency of the menu access authority of a user is low.
In order to achieve the above object, the present invention provides a method for modifying menu rights, the method comprising the steps of:
when a permission modification request is received, role information corresponding to the permission modification request is determined;
determining the access resource corresponding to the role information and/or the menu authority corresponding to the access resource;
and when the access resource meets the target resource corresponding to the permission modification request and/or the menu permission meets the permission corresponding to the permission modification request, associating the user information corresponding to the permission modification request to the role information.
Optionally, when the permission modification request is received, determining menu information corresponding to the permission modification request, and before determining the step of accessing the resource based on the menu information, further includes:
responding to a menu generating instruction received by a menu user-defined interface, and determining basic menu information and basic access resources to be generated;
storing the basic menu information and the basic access resource association into a database;
and when receiving the role and resource association instruction, determining target role information and target access resources, and storing the target role information and the target access resources in the database in association.
Optionally, the step of determining the access resource corresponding to the role information and/or the menu authority corresponding to the access resource includes:
sending a query instruction to the database according to the role information, and receiving the access resource which is fed back by the database based on the query instruction and has an association relation with the role information; and/or
And sending an authority inquiry instruction to the database according to the access resource, and receiving the menu authority which is fed back by the database based on the authority inquiry instruction and has an association relation with the access resource.
Optionally, after the step of determining the role information corresponding to the permission modification request when the permission modification request is received, the method further includes:
when the role information is a plurality of, determining role group information corresponding to the role information;
the role group information is sent to a right management interface, and a feedback instruction corresponding to the role group information is received by the right management interface is responded;
and executing the step of associating the user information corresponding to the permission modification request with the role information when the feedback instruction is the current unified modification instruction.
Optionally, when the access resource meets the target resource corresponding to the permission modification request and/or the menu permission meets the permission corresponding to the permission modification request, the step of associating the user information corresponding to the permission modification request to the role information further includes:
when login information is detected, determining a login role corresponding to the login information;
sending a menu access request to a storage system based on the login role, and receiving resource information fed back by the storage system based on the menu access request;
and determining an access menu according to the resource information, and outputting the access menu in a menu display interface.
Optionally, before the step of determining the role information corresponding to the permission modification request when the permission modification request is received, the method further includes:
when a user registration request is received, determining registration role information associated with the registration request, and feeding back the registration role information to a right management interface;
responding to the registration instruction received by the rights management interface relative to the registration role information, and executing the registration action according to the registration instruction.
Optionally, when the permission modification request is received, the step of determining role information corresponding to the permission modification request includes:
when the permission modification request is received, determining the user information corresponding to the permission modification request;
and carrying out recognition processing on the user information based on the intelligent analysis module, and generating the role information based on a recognition processing result.
Optionally, after the step of determining the user information corresponding to the permission modification request when the permission modification request is received, the method further includes:
determining initial role information corresponding to the user information;
generating temporary role information according to the initial role information, and feeding back the temporary role information to a role confirmation interface;
and when receiving the role confirmation interface and based on the confirmation instruction fed back by the temporary role information, taking the temporary role information as the role information corresponding to the permission modification request.
In addition, in order to achieve the above object, the present invention also provides a menu authority modification device, which includes a memory, a processor, and a modification program of a menu authority stored on the memory and executable on the processor, the modification program of the menu authority implementing the steps of the modification method of the menu authority as described above when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a modification program of menu rights, which when executed by a processor, implements the steps of the modification method of menu rights as described above.
The embodiment of the invention provides a modification method of menu permission, a menu permission modification device and a storage medium, wherein role information corresponding to a permission modification request is determined when the permission modification request is received, then access resources corresponding to the role information and/or menu permission corresponding to the access resources are determined, and when the access resources meet target resources corresponding to the permission modification request and/or the menu permission meets the rights corresponding to the permission modification request, user information corresponding to the permission modification request is associated to the role information. It can be seen that by acquiring the role information of the menu permission to be modified, acquiring the access resource with the association relation with the role information according to the role information, and/or accessing the menu permission corresponding to the resource, and binding the user information into the corresponding role information according to the defined association relation between the role and the resource, namely associating the menu permission with the role, the user can access the corresponding menu through the modified role information, and the modification efficiency of the menu permission and the flexibility of the system are improved while the modification of the menu permission is completed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a flowchart of a first embodiment of a method for modifying menu rights of the present invention;
FIG. 2 is a diagram showing the definition of menu, resource and role information of the menu authority modification method of the present invention;
FIG. 3 is a flowchart illustrating a method for modifying menu rights according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram of a third embodiment of a method of modifying menu rights of the present invention;
FIG. 5 is a diagram of a menu information interface of a menu permission modification method according to the present invention;
FIG. 6 is a flowchart of a method for modifying menu rights according to a fourth embodiment of the present invention;
fig. 7 is a schematic diagram of a terminal hardware structure of various embodiments of a method for modifying menu rights of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In order to better understand the above technical solution, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 1, in a first embodiment, the steps of the method for modifying menu rights of the present invention specifically include:
step S10, when a permission modification request is received, role information corresponding to the permission modification request is determined;
in the actual development process or the product online process, when the position of a certain user is promoted, the more the corresponding content of the menu corresponding to the product can be accessed. The developer adjusts the menu access right of a certain user. The existing menu access right adjustment mode is that after information of a certain user is selected, enumerated values of menus which can be accessed by the user are checked or canceled, and accordingly the user can access corresponding menu information is guaranteed. However, when there are more users who need to modify the menu authority, or the number of modified menus is larger, the more operations that need to be checked or cancel the check are required, resulting in lower modification efficiency of the menu access authority of the users.
Therefore, in the embodiment, referring to fig. 2, the association relationship between the role information and the access resource is defined, and the association relationship between the access resource and the menu authority is defined, when the user needs to modify the authority information, the user only needs to modify the role information of the user into the corresponding role by searching the role corresponding to the authority information and judging according to the menu resource corresponding to the role, and when the current role is determined to be in accordance with the accessed menu authority, based on the determination, the efficiency of modifying the menu authority can be effectively improved. Specifically, when the user needs to modify the corresponding authority information, a corresponding menu authority modification request can be uploaded in an authority modification request interface, wherein the authority modification request comprises the user information for sending the request, the role information needing modification, the target resource which can be accessed by the user after modification and the authority which can be accessed. Therefore, when the permission modification request is received, the role information corresponding to the permission modification request can be acquired first, and whether the current role meets the requirement or not is judged according to the association relationship between the locally stored role and the access resource and the association relationship between the access resource and the menu permission. Therefore, when the menu authority modification system receives the authority modification request, the basic information corresponding to the modification request can be analyzed, and the role information needing modification is obtained.
Optionally, after determining the role information corresponding to the permission modification request, the role information may be sent to a permission management interface, where a developer may modify the role information of the user, that is, the management system may respond to a modification instruction received by the permission management interface and corresponding to the role information, and execute a modification action of the role information according to the modification instruction.
The role information of the user X is a, the accessible menu includes A1 and A2, when the user needs to access the additional menus B1 and B2 based on the current access right, the role information of the user X is AB, at this time, the user X will send a corresponding right modification request, after the menu right modification system determines that the role information needing to be modified is AB, the role information is fed back to the right management interface, and after receiving an instruction for allowing modification fed back by the developer, the role information of the user X is changed from a to AB, and modification of the menu access right of the user is completed based on the information.
Step S20, determining the access resource corresponding to the role information and/or the menu authority corresponding to the access resource;
in this embodiment, it should be noted that, the permission modification request includes a target resource that the user is allowed to access and a permission corresponding to the target resource that the user is allowed to access, and the access resource corresponding to the role information refers to a resource that the role information can access, and the resource binds a corresponding menu permission, that is, a menu permission that the role information can access is considered. The target resources and rights which are allowed to be accessed refer to the target resources and rights which can be accessed after the user completes the role modification. For example, the user can only access the menu A1 originally, and when the user is allowed to access the menus A1, A2 and B1, the user needs to modify the access authority so as to adjust to the corresponding roles, so that the corresponding menu can be accessed in the system. It should be noted that different menu permission access policies correspond to different role information, and each role information has a uniquely bound accessible menu.
Therefore, after determining the role information corresponding to the permission request, whether to modify the role information is determined according to whether the access resource associated with the role information and/or the menu permission associated with the access resource is the same as the target resource and permission corresponding to the permission modification request, otherwise, the menus allowed to be accessed by the user include A1, A2 and B3, and in the permission modification request provided by the user, when the menus which can be accessed in the role information to be modified include A1, A2, A3 and B3, if the role is directly modified, the menus which can be actually accessed by the user after the role is modified are easily beyond the preset range, and thus the user cannot be prevented from performing 'unauthorized' operation. Therefore, the access resource corresponding to the role information and/or the menu authority corresponding to the access resource need to be determined.
Optionally, before this step, the menu and the corresponding menu resource need to be stored in association, and the menu resource and the role information need to be stored in association. The method comprises the steps that a user can respond to a menu generating instruction received by a menu custom interface, basic menu information and basic access resources to be generated are determined, wherein the basic menu information refers to all current front-end menu information, when database information of a menu-menu resource is constructed, a developer can input existing menu information or newly added menu information, namely a menu generating instruction, in the menu custom interface, and then a menu authority management system determines contents to be generated based on the menu generating instruction. And the portable management system stores the basic menu information and the basic access resource association into a database. And simultaneously, when receiving a role and resource association instruction, determining target role information and target access resources, and storing the target role information and the target access resources in the database in association. Based on this, the association of the menu and the access resource of the menu as shown in fig. 2 is completed, and the association of the access resource and the character information.
Illustratively, in the front end, the code defining the menu information and menu resources is as follows:
[{
name, 'menu 1',
icon:'icon1',
resource:'menu.resource1',
path:'/user'
},
{
name, 'menu 2',
icon:'icon2',
resource:'menu.resource2',
path:'/policy'
in the declarative grammar above, assuming that the role information of the user a is role a, role a only has resource menu.resource1, the front-end code template controls the user a to see only menu 1 and not menu 2. It should be noted that, the definition of the resource, the definition of the role, the association relationship between the resource and the role, and the association relationship between the role and the user are all defined in the background system managed by the user. After the definition is completed, the front end of the management system takes a resource list which can be accessed by the current user through an API interface, and then controls the front end menu authority through the list to control which menus can be seen by the current user.
Optionally, on the basis of completing the information association, the step of determining the access resource corresponding to the role information and/or the menu authority corresponding to the access resource may specifically include: sending a query instruction to the database according to the role information, and receiving the access resource which is fed back by the database based on the query instruction and has an association relation with the role information; and/or sending an authority inquiry instruction to the database according to the access resource, and receiving the menu authority which is fed back by the database based on the authority inquiry instruction and has an association relation with the access resource.
Step S30, when the access resource meets the target resource corresponding to the permission modification request and/or the menu permission meets the permission corresponding to the permission modification request, the user information corresponding to the permission modification request is associated to the role information.
In this embodiment, whether to modify the role information needs to be determined according to the access resource associated with the role information and/or whether the menu authority associated with the access resource is the same as the target resource and the authority corresponding to the authority modification request, so when the access resource meets the target resource corresponding to the authority modification request, that is, the access resource is the same as the target resource corresponding to the authority modification request, and/or the menu authority meets the authority corresponding to the authority modification request, that is, when the menu authority is the same as the authority corresponding to the authority access request, the role information to be modified can be considered to meet the requirement, and then the user information corresponding to the authority modification request is associated to the role information corresponding to the authority request, thereby facilitating management and maintenance of the menu authority. When the authority which can be accessed by the user is changed, the corresponding role information is only required to be adjusted, and independent checking setting is not required to be carried out on each menu, so that the modification efficiency of the authority of the menu is improved.
In the technical scheme disclosed in the embodiment, through carrying out association binding on the menu permission and the menu resources, carrying out association binding on the menu resources and the role information, further determining the role information to be modified, the access resources corresponding to the role information and/or the menu permission corresponding to the access resources when receiving the permission modification request, and judging whether the access resources and the menu permission meet the requirements or not to associate the user information into the corresponding roles, when the permission which can be accessed by a user changes, only the corresponding role information is required to be adjusted, and independent checking setting is not required for each menu, so that the menu permission modification flexibility is improved while the menu permission modification efficiency is improved, and meanwhile, the menu can be customized according to the requirements and the permissions of different roles, so that each role can only access the menu with the permission. This ensures that the user can only operate within his or her right range and prevents unauthorized operation by the user.
Referring to fig. 3, in the second embodiment, after step S10, the method further includes:
step S40, when the number of the role information is multiple, determining role group information corresponding to the role information;
in this embodiment, when the number of the permission modification requests is multiple, the number of the received role information may be multiple, and in order to ensure processing efficiency of processing the permission modification requests of multiple users, after the role information is obtained, the role group information of the same role may be selected according to the role information, so that the same role information may be uniformly processed at one time, and thus, modification efficiency of menu permission is improved.
Step S50, the role group information is sent to a right management interface, and a feedback instruction corresponding to the role group information is received by the right management interface is responded;
and step S60, when the feedback instruction is the current unified modification instruction, executing the step of associating the user information corresponding to the permission modification request with the role information.
In this embodiment, after the role group information corresponding to the same role information is sent to the rights management interface, an operation instruction input in the interface by a developer is responded, if the operation instruction is a unified modification instruction, a step of associating user information with the role information can be directly performed based on the role information, so that the need of repeatedly acquiring the same access resource, access information and the like is avoided, and the rights modification efficiency when more rights modification requests are processed is further improved.
Referring to fig. 4, in the third embodiment, after step S30, the method further includes:
step S70, determining a login role corresponding to login information when the login information is detected;
step S80, a menu access request is sent to a storage system based on the login role, and resource information fed back by the storage system based on the menu access request is received;
step S90, determining an access menu according to the resource information, and outputting the access menu in a menu display interface.
In this embodiment, after a user logs in, the management system can determine a corresponding login role according to login information of the user, and further send a corresponding access request to the storage system according to the login role, and the storage system may include a database, and then the database searches for a corresponding access resource according to the role information of the login role, and sends the searched access resource back to the management system.
For example, after the management system receives the resource information fed back by the storage system and determines to access the menu according to the resource information, a menu display interface as shown in fig. 5 can be output, that is, in the interface, the menu that the user can view includes information input, review, verification, payment, contract management, query, report and the like.
Optionally, before determining the role information corresponding to the permission modification request, if a user registration request is received, determining registration role information associated with the registration request, feeding the registration role information back to the permission management interface, then responding to a registration instruction received by the permission management interface and corresponding to the registration role information, and executing a registration action according to the registration instruction. Wherein, the registration action refers to binding the registration role information with the corresponding access resource.
In the technical scheme disclosed by the embodiment, the resources which can be accessed by the login user are obtained through the login role information, and then the menu information which can be accessed by the login user is displayed based on the output of the resources which can be accessed, meanwhile, when a new role registration requirement is received, the binding and registration of the role information are completed, and then the association relation between the access resource and the menu authority is obtained through the association relation between the role and the access resource, so that the modification efficiency of the menu authority is improved.
Optionally, referring to fig. 6, in the fifth embodiment, step S10 may include:
step S11, when the permission modification request is received, determining the user information corresponding to the permission modification request;
and step S12, carrying out recognition processing on the user information based on an intelligent analysis module, and generating the role information based on a recognition processing result.
In this embodiment, after the permission modification request is obtained, the role information may be directly generated by the intelligent module, in addition to directly determining the role information through the permission modification request. Specifically, after the user information is determined, basic information of the current user, such as job entering information, promotion information and the like of the current user, is analyzed through an intelligent analysis module, and role information to be modified is directly generated according to the information. The generated role information cannot be directly used for binding the current user, and association processing is needed after the information is confirmed by a developer.
Optionally, after obtaining the user information, initial role information corresponding to the user information may be directly determined, and then temporary role information is generated according to the processing role information, and the temporary role information is fed back to the role confirmation interface. Wherein the authority of the temporary character information is generally larger than the menu authority range of the current initial character information, for example, the menu authority accessible in the initial character information includes A1, A2 and A3, and based on this, the temporary character information of the accessible menu authority including A1, A2, A3 and A4 can be generated.
After feeding back the temporary role information to a role confirmation interface, a developer inputs a confirmation instruction according to the information, and when receiving the role confirmation interface and based on the confirmation instruction fed back by the temporary role information, the management system takes the temporary role information as the role information corresponding to the permission modification request. At the moment, the authority modification information can be intelligently processed, so that the authority modification efficiency of the menu is improved.
In the technical scheme disclosed in the embodiment, when the permission modification request is received, corresponding role information can be intelligently generated according to the user information of the modification request, so that the processing efficiency of the role information is improved, and the modification efficiency of the menu permission is further improved.
Referring to fig. 7, fig. 7 is a schematic diagram of a terminal structure of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 7, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 7 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 7, an operating system, a network communication module, a user interface module, and a modification program of menu authority may be included in the memory 1004, which is a kind of computer storage medium.
In the terminal shown in fig. 7, the network interface 1003 is mainly used for connecting to a background server, and performing data communication with the background server; the processor 1001 may call a modification program of the menu authority stored in the memory 1005 and perform the following operations:
when a permission modification request is received, role information corresponding to the permission modification request is determined;
determining the access resource corresponding to the role information and/or the menu authority corresponding to the access resource;
and when the access resource meets the target resource corresponding to the permission modification request and/or the menu permission meets the permission corresponding to the permission modification request, associating the user information corresponding to the permission modification request to the role information.
Further, the processor 1001 may call a modification program of the menu authority stored in the memory 1005, and further perform the following operations:
responding to a menu generating instruction received by a menu user-defined interface, and determining basic menu information and basic access resources to be generated;
storing the basic menu information and the basic access resource association into a database;
and when receiving the role and resource association instruction, determining target role information and target access resources, and storing the target role information and the target access resources in the database in association.
Further, the processor 1001 may call a modification program of the menu authority stored in the memory 1005, and further perform the following operations:
sending a query instruction to the database according to the role information, and receiving the access resource which is fed back by the database based on the query instruction and has an association relation with the role information; and/or
And sending an authority inquiry instruction to the database according to the access resource, and receiving the menu authority which is fed back by the database based on the authority inquiry instruction and has an association relation with the access resource.
Further, the processor 1001 may call a modification program of the menu authority stored in the memory 1005, and further perform the following operations:
when the role information is a plurality of, determining role group information corresponding to the role information;
the role group information is sent to a right management interface, and a feedback instruction corresponding to the role group information is received by the right management interface is responded;
and executing the step of associating the user information corresponding to the permission modification request with the role information when the feedback instruction is the current unified modification instruction.
Further, the processor 1001 may call a modification program of the menu authority stored in the memory 1005, and further perform the following operations:
when login information is detected, determining a login role corresponding to the login information;
sending a menu access request to a storage system based on the login role, and receiving resource information fed back by the storage system based on the menu access request;
and determining an access menu according to the resource information, and outputting the access menu in a menu display interface.
Further, the processor 1001 may call a modification program of the menu authority stored in the memory 1005, and further perform the following operations:
when a user registration request is received, determining registration role information associated with the registration request, and feeding back the registration role information to a right management interface;
responding to the registration instruction received by the rights management interface relative to the registration role information, and executing the registration action according to the registration instruction.
Further, the processor 1001 may call a modification program of the menu authority stored in the memory 1005, and further perform the following operations:
when the permission modification request is received, determining the user information corresponding to the permission modification request;
and carrying out recognition processing on the user information based on the intelligent analysis module, and generating the role information based on a recognition processing result.
Further, the processor 1001 may call a modification program of the menu authority stored in the memory 1005, and further perform the following operations:
determining initial role information corresponding to the user information;
generating temporary role information according to the initial role information, and feeding back the temporary role information to a role confirmation interface;
and when receiving the role confirmation interface and based on the confirmation instruction fed back by the temporary role information, taking the temporary role information as the role information corresponding to the permission modification request.
Furthermore, it will be appreciated by those of ordinary skill in the art that implementing all or part of the processes in the methods of the above embodiments may be accomplished by computer programs to instruct related hardware. The computer program comprises program instructions, and the computer program may be stored in a storage medium, which is a computer readable storage medium. The program instructions are executed by at least one processor in the control terminal to carry out the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a computer-readable storage medium storing a modification program of menu rights, which when executed by a processor, implements the steps of the modification method of menu rights as described in the above embodiments.
It should be noted that, because the storage medium provided in the embodiments of the present application is a storage medium used to implement the method in the embodiments of the present application, based on the method described in the embodiments of the present application, a person skilled in the art can understand the specific structure and the modification of the storage medium, and therefore, the description thereof is omitted herein. All storage media used in the methods of the embodiments of the present application are within the scope of protection intended in the present application.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flowchart and/or block of the flowchart illustrations and/or block diagrams, and combinations of flowcharts and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The method for modifying the menu authority is characterized by comprising the following steps:
when a permission modification request is received, role information corresponding to the permission modification request is determined;
determining the access resource corresponding to the role information and/or the menu authority corresponding to the access resource;
and when the access resource meets the target resource corresponding to the permission modification request and/or the menu permission meets the permission corresponding to the permission modification request, associating the user information corresponding to the permission modification request to the role information.
2. The method for modifying menu rights according to claim 1, wherein the step of determining menu information corresponding to the rights modification request and determining access to the resource based on the menu information when the rights modification request is received further comprises:
responding to a menu generating instruction received by a menu user-defined interface, and determining basic menu information and basic access resources to be generated;
storing the basic menu information and the basic access resource association into a database;
and when receiving the role and resource association instruction, determining target role information and target access resources, and storing the target role information and the target access resources in the database in association.
3. The method for modifying menu rights according to claim 2, wherein the step of determining the access resource corresponding to the character information and/or the menu rights corresponding to the access resource comprises:
sending a query instruction to the database according to the role information, and receiving the access resource which is fed back by the database based on the query instruction and has an association relation with the role information; and/or
And sending an authority inquiry instruction to the database according to the access resource, and receiving the menu authority which is fed back by the database based on the authority inquiry instruction and has an association relation with the access resource.
4. The method for modifying menu rights according to claim 1, wherein after the step of determining the role information corresponding to the rights modification request when the rights modification request is received, further comprising:
when the role information is a plurality of, determining role group information corresponding to the role information;
the role group information is sent to a right management interface, and a feedback instruction corresponding to the role group information is received by the right management interface is responded;
and executing the step of associating the user information corresponding to the permission modification request with the role information when the feedback instruction is the current unified modification instruction.
5. The method for modifying menu rights according to claim 1, wherein when the access resource satisfies a target resource corresponding to the rights modification request and/or the menu rights satisfy a right corresponding to the rights modification request, associating user information corresponding to the rights modification request to the role information further comprises, after the step of:
when login information is detected, determining a login role corresponding to the login information;
sending a menu access request to a storage system based on the login role, and receiving resource information fed back by the storage system based on the menu access request;
and determining an access menu according to the resource information, and outputting the access menu in a menu display interface.
6. The method for modifying menu rights according to claim 1, wherein the step of determining the role information corresponding to the rights modification request when the rights modification request is received further comprises:
when a user registration request is received, determining registration role information associated with the registration request, and feeding back the registration role information to a right management interface;
responding to the registration instruction received by the rights management interface relative to the registration role information, and executing the registration action according to the registration instruction.
7. The method for modifying menu rights according to claim 1, wherein the step of determining character information corresponding to the rights modification request when the rights modification request is received comprises:
when the permission modification request is received, determining the user information corresponding to the permission modification request;
and carrying out recognition processing on the user information based on the intelligent analysis module, and generating the role information based on a recognition processing result.
8. The method for modifying menu rights of claim 7, wherein after the step of determining the user information corresponding to the rights modification request when the rights modification request is received, further comprising:
determining initial role information corresponding to the user information;
generating temporary role information according to the initial role information, and feeding back the temporary role information to a role confirmation interface;
and when receiving the role confirmation interface and based on the confirmation instruction fed back by the temporary role information, taking the temporary role information as the role information corresponding to the permission modification request.
9. A menu rights modification device, the menu rights modification device comprising: memory, a processor and a modification program of menu rights stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the modification method of menu rights as claimed in any one of claims 1 to 8.
10. A computer-readable storage medium, wherein a modification program of a menu right is stored on the computer-readable storage medium, which when executed by a processor implements the steps of the modification method of a menu right as claimed in any one of claims 1 to 8.
CN202311524695.9A 2023-11-15 2023-11-15 Menu authority modification method, menu authority modification device and storage medium Pending CN117609982A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311524695.9A CN117609982A (en) 2023-11-15 2023-11-15 Menu authority modification method, menu authority modification device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311524695.9A CN117609982A (en) 2023-11-15 2023-11-15 Menu authority modification method, menu authority modification device and storage medium

Publications (1)

Publication Number Publication Date
CN117609982A true CN117609982A (en) 2024-02-27

Family

ID=89958861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311524695.9A Pending CN117609982A (en) 2023-11-15 2023-11-15 Menu authority modification method, menu authority modification device and storage medium

Country Status (1)

Country Link
CN (1) CN117609982A (en)

Similar Documents

Publication Publication Date Title
US8656452B2 (en) Data assurance
US8943208B2 (en) Controlling access to resources by hosted entities
US8959114B2 (en) Entitlement management in an on-demand system
US10296563B2 (en) Automated testing of perceptible web page elements
US8762187B2 (en) Easy process modeling platform
US10129264B2 (en) Method and apparatus for implementing document sharing between user groups
CN108829838B (en) Batch processing method of account information and server
US10339330B2 (en) Data aggregation system for enabling query operations on restricted data that originates from multiple independent multiple sources
US20180054354A1 (en) Automated scripting for managed devices
US20170139680A1 (en) Systems, methods, and media for graphical task creation
CN108038665B (en) Business rule management method, device, equipment and computer readable storage medium
CN111190603B (en) Private data detection method and device and computer readable storage medium
WO2021008576A1 (en) Context information management method, device, and system, and computer-readable storage medium
EP3497640A1 (en) Contract management system, apparatus, and method
JP2018504681A (en) Method, apparatus, system, storage medium, program, and computer apparatus for providing authentication information on a web page
CN110011875A (en) Dial testing method, device, equipment and computer readable storage medium
CN110909013A (en) Service list generation method, device, equipment and computer readable storage medium
US9177167B2 (en) Automation framework
CN112866212A (en) Access control method and device for cloud computing resources, computer equipment and medium
US7684349B2 (en) Method and system for transparently controlling the behavior of service methods in a service oriented architecture
CN109992298B (en) Examination and approval platform expansion method and device, examination and approval platform and readable storage medium
CN112084021A (en) Interface configuration method, device and equipment of education system and readable storage medium
CN117609982A (en) Menu authority modification method, menu authority modification device and storage medium
JP7129578B1 (en) Apparatus, method and program for supporting software source code generation
US20220286467A1 (en) Managing Application Constraints across Platforms

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination