Guest User

Untitled

a guest
Aug 14th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. UPDATE role_rights
  2. LEFT JOIN roles on (role_rights.role_id = roles.id)
  3. LEFT JOIN rights on (role_rights.right_id = rights.id)
  4. SET permission = 1
  5. WHERE roles.name = "reseller" AND (
  6. (rights.controller = "providers" AND rights.action = "list") OR
  7. (rights.controller = "providers" AND rights.action = "index") OR
  8. (rights.controller = "providers" AND rights.action = "hide") OR
  9. (rights.controller = "providers" AND rights.action = "new") OR
  10. (rights.controller = "providers" AND rights.action = "create") OR
  11. (rights.controller = "providers" AND rights.action = "edit") OR
  12. (rights.controller = "providers" AND rights.action = "update") OR
  13. (rights.controller = "providers" AND rights.action = "destroy") OR
  14. (rights.controller = "providers" AND rights.action = "server_add") OR
  15. (rights.controller = "providers" AND rights.action = "provider_rules") OR
  16. (rights.controller = "providers" AND rights.action = "provider_rule_add") OR
  17. (rights.controller = "providers" AND rights.action = "provider_rule_destroy") OR
  18. (rights.controller = "providers" AND rights.action = "provider_rule_edit") OR
  19. (rights.controller = "providers" AND rights.action = "provider_rule_update") OR
  20. (rights.controller = "providers" AND rights.action = "provider_rule_change_status") OR
  21. (rights.controller = "stats" AND rights.action = "providers_calls")
  22. );
Add Comment
Please, Sign In to add comment