MySpace Developer Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

opensocial.hasPermission

Last post 06-19-2008 9:43 AM by Greg. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 03-14-2008 1:24 AM

    opensocial.hasPermission

    This seems always to return true; even if the VIEWER has not installed the application...
    Is that the correct behaviour?

    opensocial.hasPermission(opensocial.Permission.VIEWER)
  • 03-14-2008 10:01 AM In reply to

    Re: opensocial.hasPermission

    opensocial spec has VIEWER permission as always true; we don't hit the server to check that.

    Is it causing issues for you? 

     

    Cheers,

    Max 

  • 03-16-2008 7:09 PM In reply to

    Re: opensocial.hasPermission

    Thank you for the response!

     It's not necessarily a problem for me; however, I was wondering whether the functionality is "correct".

    Signal Loss:

    opensocial spec has VIEWER permission as always true; we don't hit the server to check that.

    Does this mean the Google OpenSocial v0.7 spec? Or, MyOpenSpace spec?

     Thanks again!

  • 03-17-2008 10:15 AM In reply to

    Re: opensocial.hasPermission

     Well, it's correct for the meantime.  When we start rolling out new features, such as requestSendMessage, that will require the permission AllowSendingMail.  Right now, there are no permissions to be granted, so viewer having permission is fine.

    Cheers,

    Max 

  • 06-19-2008 9:43 AM In reply to

    • Greg
    • Top 500 Contributor
    • Joined on 02-02-2008
    • Posts 7

    Re: opensocial.hasPermission

    Signal Loss:

     Well, it's correct for the meantime.  When we start rolling out new features, such as requestSendMessage, that will require the permission AllowSendingMail.  Right now, there are no permissions to be granted, so viewer having permission is fine.

    Cheers,

    Max 

     

    Now that all the new permissions values ("accesstopublicvideosphotos", "accesstoprivatevideosphotos", "displayonprofile", "displayonhome", "allowsendingemails" and "sendupdatestofriends") are being set and available via the opensocial.requestPermission() call, is it planned to improve this code to return useful values for the above permissions on the app?  Is there some other way to query whether viewer has these permissions set?

Page 1 of 1 (5 items)