encratite / RiotControl

An elaborate statistics tracking system for League of Legends. It used to be a centralised PostgreSQL based system but now it's a stand-alone SQLite application. It was written in C# and makes use of the LibOfLegends RTMP library. It is licensed under the terms of the GPLv3. Unfortunately I stopped working on it in 2013-08. Check out the website for a longer explanation.
http://riot.cont.ro.lt/
GNU General Public License v3.0
33 stars 15 forks source link

Search for unprivileged users #60

Closed tsubus closed 12 years ago

tsubus commented 12 years ago

It would be nice if unprivileged users could be able to search for a summoner, but only find those that have already been added to the database. Nothing would get updated, but it is very useful when running RiotControl just for a small group of people that have their stats automatically updated.

Korbeil commented 12 years ago

modify Configuration.xml like that:

<Privileges>
    <PrivilegeClass>
        <EnabledAPIFunctions>
            <string>Profile</string>
            <string>Statistics</string>
            <string>Games</string>
            <string>Runes</string>
            <string>Search</string>
            <string>Update</string>
            <string>SetAutomaticUpdates</string>
        </EnabledAPIFunctions>
        <MatchAllAddresses>false</MatchAllAddresses>
        <Addresses>
            <string>127.0.0.1</string>
        </Addresses>
    </PrivilegeClass>
    <PrivilegeClass>
        <EnabledAPIFunctions>
            <string>Profile</string>
            <string>Statistics</string>
            <string>Games</string>
            <string>Runes</string>
            <string>Search</string>
        </EnabledAPIFunctions>
        <MatchAllAddresses>true</MatchAllAddresses>
        <Addresses />
    </PrivilegeClass>
</Privileges>

with that Configuration, someone can search on RiotControl without privilege and can't update summoners

tsubus commented 12 years ago

My bad, I was ignorant on the matter. Thanks a bunch!