コード例 #1
0
        protected override async Task OnStart()
        {
            TutorRole = await Constants.Role.Tutor();

            if (!IsPostBack)
            {
                if (Session["QuestionObjectId"] != null)
                {
                    Question = await Question.GetFullQuestionById(Session["QuestionObjectId"].ToString());
                    FillWithQuestionInfo();
                }
                else
                {
                    cbInBundle.Enabled = true;
                    pnlExtraQuestions.Visible = true;
                }
            }

        }
コード例 #2
0
ファイル: ParseACL.cs プロジェクト: dragouf/Parse-SDK-dotNET
 /// <summary>
 /// Gets whether users belonging to the role are allowed to write this object.
 /// Even if this returns false, the role may still be able to write it if a
 /// parent role has write access.
 /// </summary>
 /// <param name="role">The name of the role.</param>
 /// <returns>Whether the role has access.</returns>
 public bool GetRoleWriteAccess(ParseRole role) {
   return GetRoleWriteAccess(role.Name);
 }
コード例 #3
0
ファイル: ParseACL.cs プロジェクト: dragouf/Parse-SDK-dotNET
 /// <summary>
 /// Sets whether users belonging to the given role are allowed to write this object.
 /// </summary>
 /// <param name="role">The role.</param>
 /// <param name="allowed">Whether the role has access.</param>
 public void SetRoleWriteAccess(ParseRole role, bool allowed) {
   SetRoleWriteAccess(role.Name, allowed);
 }
コード例 #4
0
ファイル: ParseACL.cs プロジェクト: dragouf/Parse-SDK-dotNET
 /// <summary>
 /// Gets whether users belonging to the role are allowed to read this object.
 /// Even if this returns false, the role may still be able to read it if a
 /// parent role has read access.
 /// </summary>
 /// <param name="role">The name of the role.</param>
 /// <returns>Whether the role has access.</returns>
 public bool GetRoleReadAccess(ParseRole role) {
   return GetRoleReadAccess(role.Name);
 }
コード例 #5
0
 /// <summary>
 /// Gets whether users belonging to the role are allowed to write this object.
 /// Even if this returns false, the role may still be able to write it if a
 /// parent role has write access.
 /// </summary>
 /// <param name="role">The name of the role.</param>
 /// <returns>Whether the role has access.</returns>
 public bool GetRoleWriteAccess(ParseRole role)
 {
     return(GetRoleWriteAccess(role.Name));
 }
コード例 #6
0
 /// <summary>
 /// Sets whether users belonging to the given role are allowed to write this object.
 /// </summary>
 /// <param name="role">The role.</param>
 /// <param name="allowed">Whether the role has access.</param>
 public void SetRoleWriteAccess(ParseRole role, bool allowed)
 {
     SetRoleWriteAccess(role.Name, allowed);
 }