JR10 Posted November 7, 2011 Posted November 7, 2011 I don't know much about the Web Interface, but I made a simple web chat resource. But it asks for authentication, I don't want that, I want normal players to be able to access it. Thanks in advance. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Castillo Posted November 7, 2011 Posted November 7, 2011 You must create a new ACL name, example: "InRPC"> "general.http" access="true"> "resource.resourcebrowser" access="false"> "resource.webstats" access="false"> "resource.webmap" access="false"> "resource.webadmin" access="false"> "resource.scoreboard" access="false"> "resource.runcode" access="false"> "resource.resourcemanager" access="false"> "resource.mapmanager" access="false"> "resource.admin" access="false"> "resource.elementbrowser" access="false"> "resource.webpanel" access="true"> Webpanel in my case is a kind of dashboard that show's the player stats, and a web chat too, rename it to your resource. After this, added this line: "InRPC"> To the default ACL group. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
JR10 Posted November 7, 2011 Author Posted November 7, 2011 It works for all resources when I add general.http Here: <group name="Everyone"> <acl name="Default"></acl> <acl name="Web"></acl> <object name="user.*"></object> </group> <acl name="Web"> <right name="general.http" access="true"></right> <right name="resource.webchat" access="true"></right> </acl> That allows access to all resources. But I only want access to a certain resource 'webchat'. I removed general.http, now it asks for all even webchat. Thanks. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Otto Posted November 7, 2011 Posted November 7, 2011 Mmm, what would this do? Ingame name: Otto State: Inactive Web designer. Playing MTA:SA since 2008.
Castillo Posted November 7, 2011 Posted November 7, 2011 It works for all resources when I add general.httpHere: <group name="Everyone"> <acl name="Default"></acl> <acl name="Web"></acl> <object name="user.*"></object> </group> <acl name="Web"> <right name="general.http" access="true"></right> <right name="resource.webchat" access="true"></right> </acl> That allows access to all resources. But I only want access to a certain resource 'webchat'. I removed general.http, now it asks for all even webchat. Thanks. Well, you must set all the other web resources to false then? "resource.admin" access="false"> San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
JR10 Posted November 8, 2011 Author Posted November 8, 2011 It worked as allowing general.http, and disallowing the resources I don't want them to access. Thanks. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Castillo Posted November 8, 2011 Posted November 8, 2011 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now