I don't know what the problem is; both of the configuration changes
mentioned above (setting the "layer_edit" permission and adding a permission
in the user/object/role mapping table) should allow a user to edit layers.
 If you're seeing different behavior I would need a dump of your django
database to investigate (and I can't make any promises about when I would be
able to look at the data dump even if you provided one.)

You can see the comments I made on the Trac issue for some hints on fixing
the issue, perhaps Gis Mage has a patch he could share?

If you are using GeoNode from GIT please make sure you have the latest
version.

--
David Winslow
OpenGeo - http://opengeo.org/


On Tue, May 17, 2011 at 9:29 AM, Dmitriy Tyugaev
<[email protected]>wrote:

> Hi, David and Gis Mage
>
> I also have this bug, but I have another question. On my Geonode I get this
> error until the user does not assign a status 'superuser'. Adding a
> permission "maps | layer | Can change layer" or any other has no effect.
> It's look like that permissions does not work at all.
>
> This problem only on my Geonode? What's the problem?
>
>
> On Wed, May 11, 2011 at 5:43 PM, David Winslow <[email protected]>wrote:
>
>> The technical comments I made on the ticket are about that.  We can
>> continue this discussion on the mailing list if you like, but the IRC
>> channel (#geonode on irc.freenode.net) may be more comfortable.
>>
>> --
>> David Winslow
>> OpenGeo - http://opengeo.org/
>>
>>
>> On Wed, May 11, 2011 at 9:38 AM, Gis Mage <[email protected]> wrote:
>>
>>> I'm willing to help very much.
>>> If any additional info is needed (logs etc.) - I'll provide it.
>>>
>>> BTW, I've tried to upload a shapefile on
>>> http://demo.geonode.org/data/upload and got another error (displayed in
>>> an Ext window).
>>> I suppose I don't have any administrative rights as a user of
>>> demo.geonode.org.
>>>
>>> In the meantime, can you guide me where can I put a line of code, that
>>> sets default rights for newly registered users?
>>> We're a bit stuck on this issue here:)
>>>
>>>
>>>
>>> 2011/5/11 David Winslow <[email protected]>
>>>
>>>> Sounds like you have found a bug.  I have logged it in GeoNode's issue
>>>> tracker; it is issue #954 <http://dev.geonode.org/trac/ticket/954>.
>>>>
>>>> The "maps | layer | Can change layer" settings on the layer page are a
>>>> red herring; they are a builtin feature of Django's default permissions
>>>> system, but we don't really use them.  When you grant permissions to 
>>>> "change
>>>> layer" you are granting permissions for the whole layer table; that is,
>>>> every layer in your GeoNode.  You should use the separate table (
>>>> http://mysite.example/admin/core/userobjectrolemapping/) for setting
>>>> permissions granularly if you don't want the user in question to be able to
>>>> modify all layers.
>>>>
>>>> Short of writing some code, there is currently no workaround for this
>>>> issue (sounds like you are one of the first GeoNode administrators to
>>>> support users who *aren't* admins themselves.)
>>>>
>>>> I'll make some further technical comments on the ticket; please let me
>>>> know if you are interested in helping to resolve this issue.
>>>>
>>>> --
>>>> David Winslow
>>>>
>>>> On Wed, May 11, 2011 at 7:45 AM, Gis Mage <[email protected]> wrote:
>>>>
>>>>> Hello list!
>>>>>
>>>>> When a new user registers himself in geonode and tries to upload a
>>>>> shapefile, the file uploads ok, but then there is a message, that he 
>>>>> doesn't
>>>>> have rights to edit metadata.
>>>>> Only when I add "maps | layer | Can change layer" right to this user he
>>>>> is able to edit metadata.
>>>>>
>>>>> Is there a way to give this right to all new users by default?
>>>>>
>>>>> Also it seems a bit strange to me, because new users don't have right
>>>>> "maps | layer | Can add layer", but are able to upload files.
>>>>> Why is that so?
>>>>>
>>>>> Many thanks
>>>>>
>>>>
>>>>
>>>
>>
>

Reply via email to